final class io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver<T> implements io.reactivex.Observer<T>, io.reactivex.disposables.Disposable
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver
super_class: java.lang.Object
{
final java.util.concurrent.atomic.AtomicReference<io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver<T>> current;
descriptor: Ljava/util/concurrent/atomic/AtomicReference;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicReference<Lio/reactivex/internal/operators/observable/ObservablePublish$PublishObserver<TT;>;>;
static final io.reactivex.internal.operators.observable.ObservablePublish$InnerDisposable[] EMPTY;
descriptor: [Lio/reactivex/internal/operators/observable/ObservablePublish$InnerDisposable;
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final io.reactivex.internal.operators.observable.ObservablePublish$InnerDisposable[] TERMINATED;
descriptor: [Lio/reactivex/internal/operators/observable/ObservablePublish$InnerDisposable;
flags: (0x0018) ACC_STATIC, ACC_FINAL
final java.util.concurrent.atomic.AtomicReference<io.reactivex.internal.operators.observable.ObservablePublish$InnerDisposable<T>[]> observers;
descriptor: Ljava/util/concurrent/atomic/AtomicReference;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicReference<[Lio/reactivex/internal/operators/observable/ObservablePublish$InnerDisposable<TT;>;>;
final java.util.concurrent.atomic.AtomicBoolean shouldConnect;
descriptor: Ljava/util/concurrent/atomic/AtomicBoolean;
flags: (0x0010) ACC_FINAL
final java.util.concurrent.atomic.AtomicReference<io.reactivex.disposables.Disposable> upstream;
descriptor: Ljava/util/concurrent/atomic/AtomicReference;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicReference<Lio/reactivex/disposables/Disposable;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_0
anewarray io.reactivex.internal.operators.observable.ObservablePublish$InnerDisposable
putstatic io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver.EMPTY:[Lio/reactivex/internal/operators/observable/ObservablePublish$InnerDisposable;
1: iconst_0
anewarray io.reactivex.internal.operators.observable.ObservablePublish$InnerDisposable
putstatic io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver.TERMINATED:[Lio/reactivex/internal/operators/observable/ObservablePublish$InnerDisposable;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(java.util.concurrent.atomic.AtomicReference<io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver<T>>);
descriptor: (Ljava/util/concurrent/atomic/AtomicReference;)V
flags: (0x0000)
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.atomic.AtomicReference
dup
invokespecial java.util.concurrent.atomic.AtomicReference.<init>:()V
putfield io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver.upstream:Ljava/util/concurrent/atomic/AtomicReference;
2: aload 0
new java.util.concurrent.atomic.AtomicReference
dup
getstatic io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver.EMPTY:[Lio/reactivex/internal/operators/observable/ObservablePublish$InnerDisposable;
invokespecial java.util.concurrent.atomic.AtomicReference.<init>:(Ljava/lang/Object;)V
putfield io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver.observers:Ljava/util/concurrent/atomic/AtomicReference;
3: aload 0
aload 1
putfield io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver.current:Ljava/util/concurrent/atomic/AtomicReference;
4: aload 0
new java.util.concurrent.atomic.AtomicBoolean
dup
invokespecial java.util.concurrent.atomic.AtomicBoolean.<init>:()V
putfield io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver.shouldConnect:Ljava/util/concurrent/atomic/AtomicBoolean;
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/reactivex/internal/operators/observable/ObservablePublish$PublishObserver<TT;>;
0 6 1 current Ljava/util/concurrent/atomic/AtomicReference<Lio/reactivex/internal/operators/observable/ObservablePublish$PublishObserver<TT;>;>;
Signature: (Ljava/util/concurrent/atomic/AtomicReference<Lio/reactivex/internal/operators/observable/ObservablePublish$PublishObserver<TT;>;>;)V
MethodParameters:
Name Flags
current
public void dispose();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver.observers:Ljava/util/concurrent/atomic/AtomicReference;
getstatic io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver.TERMINATED:[Lio/reactivex/internal/operators/observable/ObservablePublish$InnerDisposable;
invokevirtual java.util.concurrent.atomic.AtomicReference.getAndSet:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.reactivex.internal.operators.observable.ObservablePublish$InnerDisposable[]
astore 1
start local 1 1: aload 1
getstatic io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver.TERMINATED:[Lio/reactivex/internal/operators/observable/ObservablePublish$InnerDisposable;
if_acmpeq 4
2: aload 0
getfield io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver.current:Ljava/util/concurrent/atomic/AtomicReference;
aload 0
aconst_null
invokevirtual java.util.concurrent.atomic.AtomicReference.compareAndSet:(Ljava/lang/Object;Ljava/lang/Object;)Z
pop
3: aload 0
getfield io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver.upstream:Ljava/util/concurrent/atomic/AtomicReference;
invokestatic io.reactivex.internal.disposables.DisposableHelper.dispose:(Ljava/util/concurrent/atomic/AtomicReference;)Z
pop
4: StackMap locals: io.reactivex.internal.operators.observable.ObservablePublish$InnerDisposable[]
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/reactivex/internal/operators/observable/ObservablePublish$PublishObserver<TT;>;
1 5 1 ps [Lio/reactivex/internal/operators/observable/ObservablePublish$InnerDisposable;
public boolean isDisposed();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver.observers:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
getstatic io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver.TERMINATED:[Lio/reactivex/internal/operators/observable/ObservablePublish$InnerDisposable;
if_acmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/reactivex/internal/operators/observable/ObservablePublish$PublishObserver<TT;>;
public void onSubscribe(io.reactivex.disposables.Disposable);
descriptor: (Lio/reactivex/disposables/Disposable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver.upstream:Ljava/util/concurrent/atomic/AtomicReference;
aload 1
invokestatic io.reactivex.internal.disposables.DisposableHelper.setOnce:(Ljava/util/concurrent/atomic/AtomicReference;Lio/reactivex/disposables/Disposable;)Z
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/reactivex/internal/operators/observable/ObservablePublish$PublishObserver<TT;>;
0 2 1 d Lio/reactivex/disposables/Disposable;
MethodParameters:
Name Flags
d
public void onNext();
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver.observers:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast io.reactivex.internal.operators.observable.ObservablePublish$InnerDisposable[]
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 4
StackMap locals: io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver java.lang.Object top int int io.reactivex.internal.operators.observable.ObservablePublish$InnerDisposable[]
StackMap stack:
1: aload 5
iload 3
aaload
astore 2
start local 2 2: aload 2
getfield io.reactivex.internal.operators.observable.ObservablePublish$InnerDisposable.child:Lio/reactivex/Observer;
aload 1
invokeinterface io.reactivex.Observer.onNext:(Ljava/lang/Object;)V
end local 2 3: iinc 3 1
StackMap locals:
StackMap stack:
4: iload 3
iload 4
if_icmplt 1
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/reactivex/internal/operators/observable/ObservablePublish$PublishObserver<TT;>;
0 6 1 t TT;
2 3 2 inner Lio/reactivex/internal/operators/observable/ObservablePublish$InnerDisposable<TT;>;
Signature: (TT;)V
MethodParameters:
Name Flags
t
public void onError(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: aload 0
getfield io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver.current:Ljava/util/concurrent/atomic/AtomicReference;
aload 0
aconst_null
invokevirtual java.util.concurrent.atomic.AtomicReference.compareAndSet:(Ljava/lang/Object;Ljava/lang/Object;)Z
pop
1: aload 0
getfield io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver.observers:Ljava/util/concurrent/atomic/AtomicReference;
getstatic io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver.TERMINATED:[Lio/reactivex/internal/operators/observable/ObservablePublish$InnerDisposable;
invokevirtual java.util.concurrent.atomic.AtomicReference.getAndSet:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.reactivex.internal.operators.observable.ObservablePublish$InnerDisposable[]
astore 2
start local 2 2: aload 2
arraylength
ifeq 9
3: aload 2
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 7
StackMap locals: io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver java.lang.Throwable io.reactivex.internal.operators.observable.ObservablePublish$InnerDisposable[] top int int io.reactivex.internal.operators.observable.ObservablePublish$InnerDisposable[]
StackMap stack:
4: aload 6
iload 4
aaload
astore 3
start local 3 5: aload 3
getfield io.reactivex.internal.operators.observable.ObservablePublish$InnerDisposable.child:Lio/reactivex/Observer;
aload 1
invokeinterface io.reactivex.Observer.onError:(Ljava/lang/Throwable;)V
end local 3 6: iinc 4 1
StackMap locals:
StackMap stack:
7: iload 4
iload 5
if_icmplt 4
8: goto 10
9: StackMap locals: io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver java.lang.Throwable io.reactivex.internal.operators.observable.ObservablePublish$InnerDisposable[]
StackMap stack:
aload 1
invokestatic io.reactivex.plugins.RxJavaPlugins.onError:(Ljava/lang/Throwable;)V
10: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lio/reactivex/internal/operators/observable/ObservablePublish$PublishObserver<TT;>;
0 11 1 e Ljava/lang/Throwable;
2 11 2 a [Lio/reactivex/internal/operators/observable/ObservablePublish$InnerDisposable;
5 6 3 inner Lio/reactivex/internal/operators/observable/ObservablePublish$InnerDisposable<TT;>;
MethodParameters:
Name Flags
e
public void onComplete();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
getfield io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver.current:Ljava/util/concurrent/atomic/AtomicReference;
aload 0
aconst_null
invokevirtual java.util.concurrent.atomic.AtomicReference.compareAndSet:(Ljava/lang/Object;Ljava/lang/Object;)Z
pop
1: aload 0
getfield io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver.observers:Ljava/util/concurrent/atomic/AtomicReference;
getstatic io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver.TERMINATED:[Lio/reactivex/internal/operators/observable/ObservablePublish$InnerDisposable;
invokevirtual java.util.concurrent.atomic.AtomicReference.getAndSet:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.reactivex.internal.operators.observable.ObservablePublish$InnerDisposable[]
dup
astore 4
arraylength
istore 3
iconst_0
istore 2
goto 5
StackMap locals: io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver top int int io.reactivex.internal.operators.observable.ObservablePublish$InnerDisposable[]
StackMap stack:
2: aload 4
iload 2
aaload
astore 1
start local 1 3: aload 1
getfield io.reactivex.internal.operators.observable.ObservablePublish$InnerDisposable.child:Lio/reactivex/Observer;
invokeinterface io.reactivex.Observer.onComplete:()V
end local 1 4: iinc 2 1
StackMap locals:
StackMap stack:
5: iload 2
iload 3
if_icmplt 2
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lio/reactivex/internal/operators/observable/ObservablePublish$PublishObserver<TT;>;
3 4 1 inner Lio/reactivex/internal/operators/observable/ObservablePublish$InnerDisposable<TT;>;
boolean add(io.reactivex.internal.operators.observable.ObservablePublish$InnerDisposable<T>);
descriptor: (Lio/reactivex/internal/operators/observable/ObservablePublish$InnerDisposable;)Z
flags: (0x0000)
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver.observers:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast io.reactivex.internal.operators.observable.ObservablePublish$InnerDisposable[]
astore 2
start local 2 1: aload 2
getstatic io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver.TERMINATED:[Lio/reactivex/internal/operators/observable/ObservablePublish$InnerDisposable;
if_acmpne 3
2: iconst_0
ireturn
3: StackMap locals: io.reactivex.internal.operators.observable.ObservablePublish$InnerDisposable[]
StackMap stack:
aload 2
arraylength
istore 3
start local 3 4: iload 3
iconst_1
iadd
anewarray io.reactivex.internal.operators.observable.ObservablePublish$InnerDisposable
astore 4
start local 4 5: aload 2
iconst_0
aload 4
iconst_0
iload 3
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
6: aload 4
iload 3
aload 1
aastore
7: aload 0
getfield io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver.observers:Ljava/util/concurrent/atomic/AtomicReference;
aload 2
aload 4
invokevirtual java.util.concurrent.atomic.AtomicReference.compareAndSet:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 0
8: iconst_1
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lio/reactivex/internal/operators/observable/ObservablePublish$PublishObserver<TT;>;
0 9 1 producer Lio/reactivex/internal/operators/observable/ObservablePublish$InnerDisposable<TT;>;
1 9 2 c [Lio/reactivex/internal/operators/observable/ObservablePublish$InnerDisposable;
4 9 3 len I
5 9 4 u [Lio/reactivex/internal/operators/observable/ObservablePublish$InnerDisposable;
Signature: (Lio/reactivex/internal/operators/observable/ObservablePublish$InnerDisposable<TT;>;)Z
MethodParameters:
Name Flags
producer
void remove(io.reactivex.internal.operators.observable.ObservablePublish$InnerDisposable<T>);
descriptor: (Lio/reactivex/internal/operators/observable/ObservablePublish$InnerDisposable;)V
flags: (0x0000)
Code:
stack=6, locals=6, args_size=2
start local 0 start local 1 0: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver.observers:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast io.reactivex.internal.operators.observable.ObservablePublish$InnerDisposable[]
astore 2
start local 2 1: aload 2
arraylength
istore 3
start local 3 2: iload 3
ifne 4
3: return
4: StackMap locals: io.reactivex.internal.operators.observable.ObservablePublish$InnerDisposable[] int
StackMap stack:
iconst_m1
istore 4
start local 4 5: iconst_0
istore 5
start local 5 6: goto 11
7: StackMap locals: int int
StackMap stack:
aload 2
iload 5
aaload
aload 1
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 10
8: iload 5
istore 4
9: goto 12
10: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
11: iload 5
iload 3
if_icmplt 7
end local 5 12: StackMap locals:
StackMap stack:
iload 4
ifge 14
13: return
14: StackMap locals:
StackMap stack:
iload 3
iconst_1
if_icmpne 17
15: getstatic io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver.EMPTY:[Lio/reactivex/internal/operators/observable/ObservablePublish$InnerDisposable;
astore 5
start local 5 16: goto 20
end local 5 17: StackMap locals:
StackMap stack:
iload 3
iconst_1
isub
anewarray io.reactivex.internal.operators.observable.ObservablePublish$InnerDisposable
astore 5
start local 5 18: aload 2
iconst_0
aload 5
iconst_0
iload 4
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
19: aload 2
iload 4
iconst_1
iadd
aload 5
iload 4
iload 3
iload 4
isub
iconst_1
isub
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
20: StackMap locals: io.reactivex.internal.operators.observable.ObservablePublish$InnerDisposable[]
StackMap stack:
aload 0
getfield io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver.observers:Ljava/util/concurrent/atomic/AtomicReference;
aload 2
aload 5
invokevirtual java.util.concurrent.atomic.AtomicReference.compareAndSet:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 0
21: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lio/reactivex/internal/operators/observable/ObservablePublish$PublishObserver<TT;>;
0 22 1 producer Lio/reactivex/internal/operators/observable/ObservablePublish$InnerDisposable<TT;>;
1 22 2 c [Lio/reactivex/internal/operators/observable/ObservablePublish$InnerDisposable;
2 22 3 len I
5 22 4 j I
6 12 5 i I
16 17 5 u [Lio/reactivex/internal/operators/observable/ObservablePublish$InnerDisposable;
18 22 5 u [Lio/reactivex/internal/operators/observable/ObservablePublish$InnerDisposable;
Signature: (Lio/reactivex/internal/operators/observable/ObservablePublish$InnerDisposable<TT;>;)V
MethodParameters:
Name Flags
producer
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Lio/reactivex/Observer<TT;>;Lio/reactivex/disposables/Disposable;
SourceFile: "ObservablePublish.java"
NestHost: io.reactivex.internal.operators.observable.ObservablePublish
InnerClasses:
final InnerDisposable = io.reactivex.internal.operators.observable.ObservablePublish$InnerDisposable of io.reactivex.internal.operators.observable.ObservablePublish
final PublishObserver = io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver of io.reactivex.internal.operators.observable.ObservablePublish