final class jdk.incubator.http.SocketTube$InternalWriteSubscriber implements java.util.concurrent.Flow$Subscriber<java.util.List<java.nio.ByteBuffer>>
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.incubator.http.SocketTube$InternalWriteSubscriber
super_class: java.lang.Object
{
volatile java.util.concurrent.Flow$Subscription subscription;
descriptor: Ljava/util/concurrent/Flow$Subscription;
flags: (0x0040) ACC_VOLATILE
volatile java.util.List<java.nio.ByteBuffer> current;
descriptor: Ljava/util/List;
flags: (0x0040) ACC_VOLATILE
Signature: Ljava/util/List<Ljava/nio/ByteBuffer;>;
volatile boolean completed;
descriptor: Z
flags: (0x0040) ACC_VOLATILE
final jdk.incubator.http.SocketTube$InternalWriteSubscriber$WriteEvent writeEvent;
descriptor: Ljdk/incubator/http/SocketTube$InternalWriteSubscriber$WriteEvent;
flags: (0x0010) ACC_FINAL
final java.util.concurrent.atomic.AtomicLong writeDemand;
descriptor: Ljava/util/concurrent/atomic/AtomicLong;
flags: (0x0010) ACC_FINAL
final jdk.incubator.http.SocketTube this$0;
descriptor: Ljdk/incubator/http/SocketTube;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Ljdk/incubator/http/SocketTube;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic jdk.incubator.http.SocketTube$InternalWriteSubscriber.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>(jdk.incubator.http.SocketTube);
descriptor: (Ljdk/incubator/http/SocketTube;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=2, args_size=2
start local 0 0: aload 0
aload 1
putfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/incubator/http/SocketTube;
aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new jdk.incubator.http.SocketTube$InternalWriteSubscriber$WriteEvent
dup
aload 0
aload 1
getfield jdk.incubator.http.SocketTube.channel:Ljava/nio/channels/SocketChannel;
aload 0
invokespecial jdk.incubator.http.SocketTube$InternalWriteSubscriber$WriteEvent.<init>:(Ljdk/incubator/http/SocketTube$InternalWriteSubscriber;Ljava/nio/channels/SocketChannel;Ljdk/incubator/http/SocketTube$InternalWriteSubscriber;)V
putfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.writeEvent:Ljdk/incubator/http/SocketTube$InternalWriteSubscriber$WriteEvent;
2: aload 0
new java.util.concurrent.atomic.AtomicLong
dup
invokespecial java.util.concurrent.atomic.AtomicLong.<init>:()V
putfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.writeDemand:Ljava/util/concurrent/atomic/AtomicLong;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/incubator/http/SocketTube$InternalWriteSubscriber;
MethodParameters:
Name Flags
this$0 final
public void onSubscribe(java.util.concurrent.Flow$Subscription);
descriptor: (Ljava/util/concurrent/Flow$Subscription;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.subscription:Ljava/util/concurrent/Flow$Subscription;
astore 2
start local 2 1: aload 0
aload 1
putfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.subscription:Ljava/util/concurrent/Flow$Subscription;
2: aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/incubator/http/SocketTube;
getfield jdk.incubator.http.SocketTube.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
ldc "subscribed for writing"
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;)V
3: aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.current:Ljava/util/List;
ifnonnull 10
4: aload 2
aload 1
if_acmpeq 5
aload 2
ifnonnull 8
5: StackMap locals: java.util.concurrent.Flow$Subscription
StackMap stack:
aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.writeDemand:Ljava/util/concurrent/atomic/AtomicLong;
lconst_0
lconst_1
invokevirtual java.util.concurrent.atomic.AtomicLong.compareAndSet:(JJ)Z
ifeq 10
6: aload 1
lconst_1
invokeinterface java.util.concurrent.Flow$Subscription.request:(J)V
7: goto 10
8: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.writeDemand:Ljava/util/concurrent/atomic/AtomicLong;
lconst_1
invokevirtual java.util.concurrent.atomic.AtomicLong.set:(J)V
9: aload 1
lconst_1
invokeinterface java.util.concurrent.Flow$Subscription.request:(J)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 Ljdk/incubator/http/SocketTube$InternalWriteSubscriber;
0 11 1 subscription Ljava/util/concurrent/Flow$Subscription;
1 11 2 previous Ljava/util/concurrent/Flow$Subscription;
MethodParameters:
Name Flags
subscription
public void onNext(java.util.List<java.nio.ByteBuffer>);
descriptor: (Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: getstatic jdk.incubator.http.SocketTube$InternalWriteSubscriber.$assertionsDisabled:Z
ifne 1
aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.current:Ljava/util/List;
ifnull 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
getstatic jdk.incubator.http.SocketTube$InternalWriteSubscriber.$assertionsDisabled:Z
ifne 2
aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.subscription:Ljava/util/concurrent/Flow$Subscription;
ifnonnull 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.current:Ljava/util/List;
3: aload 0
aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/incubator/http/SocketTube;
getfield jdk.incubator.http.SocketTube.client:Ljdk/incubator/http/HttpClientImpl;
invokevirtual jdk.incubator.http.HttpClientImpl.isSelectorThread:()Z
invokevirtual jdk.incubator.http.SocketTube$InternalWriteSubscriber.tryFlushCurrent:(Z)V
4: aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/incubator/http/SocketTube;
ldc "leaving w.onNext"
invokevirtual jdk.incubator.http.SocketTube.debugState:(Ljava/lang/String;)V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/incubator/http/SocketTube$InternalWriteSubscriber;
0 6 1 bufs Ljava/util/List<Ljava/nio/ByteBuffer;>;
Signature: (Ljava/util/List<Ljava/nio/ByteBuffer;>;)V
MethodParameters:
Name Flags
bufs
void tryFlushCurrent(boolean);
descriptor: (Z)V
flags: (0x0000)
Code:
stack=8, locals=8, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.current:Ljava/util/List;
astore 2
start local 2 1: aload 2
ifnonnull 2
return
2: StackMap locals: java.util.List
StackMap stack:
getstatic jdk.incubator.http.SocketTube$InternalWriteSubscriber.$assertionsDisabled:Z
ifne 9
iload 1
aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/incubator/http/SocketTube;
getfield jdk.incubator.http.SocketTube.client:Ljdk/incubator/http/HttpClientImpl;
invokevirtual jdk.incubator.http.HttpClientImpl.isSelectorThread:()Z
if_icmpeq 9
3: new java.lang.AssertionError
dup
4: new java.lang.StringBuilder
dup
ldc "should "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
ifeq 5
ldc ""
goto 6
StackMap locals: jdk.incubator.http.SocketTube$InternalWriteSubscriber int java.util.List
StackMap stack: new 3 new 3 java.lang.StringBuilder
5: ldc "not "
StackMap locals: jdk.incubator.http.SocketTube$InternalWriteSubscriber int java.util.List
StackMap stack: new 3 new 3 java.lang.StringBuilder java.lang.String
6: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
7: ldc " be in the selector thread"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
8: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
9: StackMap locals:
StackMap stack:
aload 2
invokestatic jdk.incubator.http.internal.common.Utils.remaining:(Ljava/util/List;)J
lstore 3
start local 3 10: aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/incubator/http/SocketTube;
getfield jdk.incubator.http.SocketTube.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
ldc "trying to write: %d"
iconst_1
anewarray java.lang.Object
dup
iconst_0
lload 3
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;[Ljava/lang/Object;)V
11: aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/incubator/http/SocketTube;
aload 2
invokevirtual jdk.incubator.http.SocketTube.writeAvailable:(Ljava/util/List;)J
lstore 5
start local 5 12: aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/incubator/http/SocketTube;
getfield jdk.incubator.http.SocketTube.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
ldc "wrote: %d"
iconst_1
anewarray java.lang.Object
dup
iconst_0
lload 3
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;[Ljava/lang/Object;)V
13: lload 5
ldc -1
lcmp
ifne 16
14: aload 0
new java.io.EOFException
dup
ldc "EOF reached while writing"
invokespecial java.io.EOFException.<init>:(Ljava/lang/String;)V
invokevirtual jdk.incubator.http.SocketTube$InternalWriteSubscriber.signalError:(Ljava/lang/Throwable;)V
15: return
16: StackMap locals: long long
StackMap stack:
getstatic jdk.incubator.http.SocketTube$InternalWriteSubscriber.$assertionsDisabled:Z
ifne 17
lload 5
lload 3
lcmp
ifle 17
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
17: StackMap locals:
StackMap stack:
lload 3
lload 5
lsub
lconst_0
lcmp
ifne 28
18: aload 0
aconst_null
putfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.current:Ljava/util/List;
19: aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.writeDemand:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.decrementAndGet:()J
pop2
20: aload 0
invokedynamic run(Ljdk/incubator/http/SocketTube$InternalWriteSubscriber;)Ljava/lang/Runnable;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()V
jdk/incubator/http/SocketTube$InternalWriteSubscriber.requestMore()V (5)
()V
astore 7
start local 7 21: iload 1
ifeq 25
22: getstatic jdk.incubator.http.SocketTube$InternalWriteSubscriber.$assertionsDisabled:Z
ifne 23
aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/incubator/http/SocketTube;
getfield jdk.incubator.http.SocketTube.client:Ljdk/incubator/http/HttpClientImpl;
invokevirtual jdk.incubator.http.HttpClientImpl.isSelectorThread:()Z
ifne 23
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
23: StackMap locals: java.lang.Runnable
StackMap stack:
aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/incubator/http/SocketTube;
getfield jdk.incubator.http.SocketTube.client:Ljdk/incubator/http/HttpClientImpl;
invokevirtual jdk.incubator.http.HttpClientImpl.theExecutor:()Ljava/util/concurrent/Executor;
aload 7
invokeinterface java.util.concurrent.Executor.execute:(Ljava/lang/Runnable;)V
24: goto 33
25: StackMap locals:
StackMap stack:
getstatic jdk.incubator.http.SocketTube$InternalWriteSubscriber.$assertionsDisabled:Z
ifne 26
aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/incubator/http/SocketTube;
getfield jdk.incubator.http.SocketTube.client:Ljdk/incubator/http/HttpClientImpl;
invokevirtual jdk.incubator.http.HttpClientImpl.isSelectorThread:()Z
ifeq 26
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
26: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.lang.Runnable.run:()V
end local 7 27: goto 33
28: StackMap locals:
StackMap stack:
aload 0
iload 1
invokevirtual jdk.incubator.http.SocketTube$InternalWriteSubscriber.resumeWriteEvent:(Z)V
end local 5 end local 3 29: goto 33
StackMap locals: jdk.incubator.http.SocketTube$InternalWriteSubscriber int java.util.List
StackMap stack: java.lang.Throwable
30: astore 3
start local 3 31: aload 0
aload 3
invokevirtual jdk.incubator.http.SocketTube$InternalWriteSubscriber.signalError:(Ljava/lang/Throwable;)V
32: aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.subscription:Ljava/util/concurrent/Flow$Subscription;
invokeinterface java.util.concurrent.Flow$Subscription.cancel:()V
end local 3 33: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 34 0 this Ljdk/incubator/http/SocketTube$InternalWriteSubscriber;
0 34 1 inSelectorThread Z
1 34 2 bufs Ljava/util/List<Ljava/nio/ByteBuffer;>;
10 29 3 remaining J
12 29 5 written J
21 27 7 requestMore Ljava/lang/Runnable;
31 33 3 t Ljava/lang/Throwable;
Exception table:
from to target type
2 15 30 Class java.lang.Throwable
16 29 30 Class java.lang.Throwable
MethodParameters:
Name Flags
inSelectorThread
void requestMore();
descriptor: ()V
flags: (0x0000)
Code:
stack=8, locals=4, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.completed:Z
ifeq 3
1: aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/incubator/http/SocketTube;
ldc "leaving requestMore: "
invokevirtual jdk.incubator.http.SocketTube.debugState:(Ljava/lang/String;)V
2: return
3: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.writeDemand:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
lstore 1
start local 1 4: aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.writeDemand:Ljava/util/concurrent/atomic/AtomicLong;
lconst_0
lconst_1
invokevirtual java.util.concurrent.atomic.AtomicLong.compareAndSet:(JJ)Z
ifeq 8
5: aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/incubator/http/SocketTube;
getfield jdk.incubator.http.SocketTube.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
ldc "write: requesting more..."
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;)V
6: aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.subscription:Ljava/util/concurrent/Flow$Subscription;
lconst_1
invokeinterface java.util.concurrent.Flow$Subscription.request:(J)V
7: goto 18
8: StackMap locals: long
StackMap stack:
aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/incubator/http/SocketTube;
getfield jdk.incubator.http.SocketTube.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
ldc "write: no need to request more: %d"
iconst_1
anewarray java.lang.Object
dup
iconst_0
lload 1
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;[Ljava/lang/Object;)V
end local 1 9: goto 18
StackMap locals: jdk.incubator.http.SocketTube$InternalWriteSubscriber
StackMap stack: java.lang.Throwable
10: astore 1
start local 1 11: aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/incubator/http/SocketTube;
getfield jdk.incubator.http.SocketTube.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
aload 1
invokedynamic get(Ljava/lang/Throwable;)Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
jdk/incubator/http/SocketTube$InternalWriteSubscriber.lambda$1(Ljava/lang/Throwable;)Ljava/lang/String; (6)
()Ljava/lang/String;
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/util/function/Supplier;)V
12: aload 0
aload 1
invokevirtual jdk.incubator.http.SocketTube$InternalWriteSubscriber.signalError:(Ljava/lang/Throwable;)V
13: aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.subscription:Ljava/util/concurrent/Flow$Subscription;
invokeinterface java.util.concurrent.Flow$Subscription.cancel:()V
end local 1 14: aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/incubator/http/SocketTube;
ldc "leaving requestMore: "
invokevirtual jdk.incubator.http.SocketTube.debugState:(Ljava/lang/String;)V
goto 19
15: StackMap locals:
StackMap stack: java.lang.Throwable
astore 3
16: aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/incubator/http/SocketTube;
ldc "leaving requestMore: "
invokevirtual jdk.incubator.http.SocketTube.debugState:(Ljava/lang/String;)V
17: aload 3
athrow
18: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/incubator/http/SocketTube;
ldc "leaving requestMore: "
invokevirtual jdk.incubator.http.SocketTube.debugState:(Ljava/lang/String;)V
19: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Ljdk/incubator/http/SocketTube$InternalWriteSubscriber;
4 9 1 d J
11 14 1 t Ljava/lang/Throwable;
Exception table:
from to target type
0 1 10 Class java.lang.Throwable
3 9 10 Class java.lang.Throwable
0 1 15 any
3 14 15 any
public void onError(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual jdk.incubator.http.SocketTube$InternalWriteSubscriber.signalError:(Ljava/lang/Throwable;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/incubator/http/SocketTube$InternalWriteSubscriber;
0 2 1 throwable Ljava/lang/Throwable;
MethodParameters:
Name Flags
throwable
public void onComplete();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=4, args_size=1
start local 0 0: aload 0
iconst_1
putfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.completed:Z
1: aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.current:Ljava/util/List;
astore 1
start local 1 2: aload 1
ifnonnull 3
lconst_0
goto 4
StackMap locals: java.util.List
StackMap stack:
3: aload 1
invokestatic jdk.incubator.http.internal.common.Utils.remaining:(Ljava/util/List;)J
StackMap locals:
StackMap stack: long
4: lstore 2
start local 2 5: aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/incubator/http/SocketTube;
getfield jdk.incubator.http.SocketTube.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
ldc "write completed, %d yet to send"
iconst_1
anewarray java.lang.Object
dup
iconst_0
lload 2
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;[Ljava/lang/Object;)V
6: aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/incubator/http/SocketTube;
ldc "InternalWriteSubscriber::onComplete"
invokevirtual jdk.incubator.http.SocketTube.debugState:(Ljava/lang/String;)V
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/incubator/http/SocketTube$InternalWriteSubscriber;
2 8 1 bufs Ljava/util/List<Ljava/nio/ByteBuffer;>;
5 8 2 remaining J
void resumeWriteEvent(boolean);
descriptor: (Z)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/incubator/http/SocketTube;
getfield jdk.incubator.http.SocketTube.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
ldc "scheduling write event"
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;)V
1: aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/incubator/http/SocketTube;
aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.writeEvent:Ljdk/incubator/http/SocketTube$InternalWriteSubscriber$WriteEvent;
aload 0
invokedynamic accept(Ljdk/incubator/http/SocketTube$InternalWriteSubscriber;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
jdk/incubator/http/SocketTube$InternalWriteSubscriber.signalError(Ljava/lang/Throwable;)V (5)
(Ljava/lang/Throwable;)V
invokevirtual jdk.incubator.http.SocketTube.resumeEvent:(Ljdk/incubator/http/SocketTube$SocketFlowEvent;Ljava/util/function/Consumer;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/incubator/http/SocketTube$InternalWriteSubscriber;
0 3 1 inSelectorThread Z
MethodParameters:
Name Flags
inSelectorThread
void signalWritable();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/incubator/http/SocketTube;
getfield jdk.incubator.http.SocketTube.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
ldc "channel is writable"
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;)V
1: aload 0
iconst_1
invokevirtual jdk.incubator.http.SocketTube$InternalWriteSubscriber.tryFlushCurrent:(Z)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/incubator/http/SocketTube$InternalWriteSubscriber;
void signalError(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/incubator/http/SocketTube;
getfield jdk.incubator.http.SocketTube.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
aload 1
invokedynamic get(Ljava/lang/Throwable;)Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
jdk/incubator/http/SocketTube$InternalWriteSubscriber.lambda$3(Ljava/lang/Throwable;)Ljava/lang/String; (6)
()Ljava/lang/String;
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/util/function/Supplier;)V
1: aload 0
iconst_1
putfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.completed:Z
2: aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/incubator/http/SocketTube;
getfield jdk.incubator.http.SocketTube.readPublisher:Ljdk/incubator/http/SocketTube$InternalReadPublisher;
aload 1
invokevirtual jdk.incubator.http.SocketTube$InternalReadPublisher.signalError:(Ljava/lang/Throwable;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/incubator/http/SocketTube$InternalWriteSubscriber;
0 4 1 error Ljava/lang/Throwable;
MethodParameters:
Name Flags
error
public void onNext(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast java.util.List
invokevirtual jdk.incubator.http.SocketTube$InternalWriteSubscriber.onNext:(Ljava/util/List;)V
return
LocalVariableTable:
Start End Slot Name Signature
static jdk.incubator.http.SocketTube access$1(jdk.incubator.http.SocketTube$InternalWriteSubscriber);
descriptor: (Ljdk/incubator/http/SocketTube$InternalWriteSubscriber;)Ljdk/incubator/http/SocketTube;
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/incubator/http/SocketTube;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.lang.String lambda$1(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
0: new java.lang.StringBuilder
dup
ldc "write: error while requesting more: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.lang.String lambda$3(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
0: new java.lang.StringBuilder
dup
ldc "write error: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Ljava/util/concurrent/Flow$Subscriber<Ljava/util/List<Ljava/nio/ByteBuffer;>;>;
SourceFile: "SocketTube.java"
NestHost: jdk.incubator.http.SocketTube
InnerClasses:
public abstract Logger = java.lang.System$Logger of java.lang.System
public final Level = java.lang.System$Logger$Level of java.lang.System$Logger
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract Subscriber = java.util.concurrent.Flow$Subscriber of java.util.concurrent.Flow
public abstract Subscription = java.util.concurrent.Flow$Subscription of java.util.concurrent.Flow
private final InternalReadPublisher = jdk.incubator.http.SocketTube$InternalReadPublisher of jdk.incubator.http.SocketTube
private final InternalWriteSubscriber = jdk.incubator.http.SocketTube$InternalWriteSubscriber of jdk.incubator.http.SocketTube
final WriteEvent = jdk.incubator.http.SocketTube$InternalWriteSubscriber$WriteEvent of jdk.incubator.http.SocketTube$InternalWriteSubscriber
private abstract SocketFlowEvent = jdk.incubator.http.SocketTube$SocketFlowEvent of jdk.incubator.http.SocketTube