final class jdk.internal.net.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.internal.net.http.SocketTube$InternalWriteSubscriber
super_class: java.lang.Object
{
volatile jdk.internal.net.http.SocketTube$InternalWriteSubscriber$WriteSubscription subscription;
descriptor: Ljdk/internal/net/http/SocketTube$InternalWriteSubscriber$WriteSubscription;
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.internal.net.http.AsyncTriggerEvent startSubscription;
descriptor: Ljdk/internal/net/http/AsyncTriggerEvent;
flags: (0x0010) ACC_FINAL
final jdk.internal.net.http.SocketTube$InternalWriteSubscriber$WriteEvent writeEvent;
descriptor: Ljdk/internal/net/http/SocketTube$InternalWriteSubscriber$WriteEvent;
flags: (0x0010) ACC_FINAL
final jdk.internal.net.http.common.Demand writeDemand;
descriptor: Ljdk/internal/net/http/common/Demand;
flags: (0x0010) ACC_FINAL
final jdk.internal.net.http.SocketTube this$0;
descriptor: Ljdk/internal/net/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/internal/net/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.internal.net.http.SocketTube$InternalWriteSubscriber.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>(jdk.internal.net.http.SocketTube);
descriptor: (Ljdk/internal/net/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.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
2: new jdk.internal.net.http.AsyncTriggerEvent
dup
aload 0
invokedynamic accept(Ljdk/internal/net/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/internal/net/http/SocketTube$InternalWriteSubscriber.signalError(Ljava/lang/Throwable;)V (5)
(Ljava/io/IOException;)V
aload 0
invokedynamic run(Ljdk/internal/net/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/internal/net/http/SocketTube$InternalWriteSubscriber.startSubscription()V (5)
()V
invokespecial jdk.internal.net.http.AsyncTriggerEvent.<init>:(Ljava/util/function/Consumer;Ljava/lang/Runnable;)V
putfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.startSubscription:Ljdk/internal/net/http/AsyncTriggerEvent;
3: aload 0
new jdk.internal.net.http.SocketTube$InternalWriteSubscriber$WriteEvent
dup
aload 0
aload 1
getfield jdk.internal.net.http.SocketTube.channel:Ljava/nio/channels/SocketChannel;
aload 0
invokespecial jdk.internal.net.http.SocketTube$InternalWriteSubscriber$WriteEvent.<init>:(Ljdk/internal/net/http/SocketTube$InternalWriteSubscriber;Ljava/nio/channels/SocketChannel;Ljdk/internal/net/http/SocketTube$InternalWriteSubscriber;)V
putfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.writeEvent:Ljdk/internal/net/http/SocketTube$InternalWriteSubscriber$WriteEvent;
4: aload 0
new jdk.internal.net.http.common.Demand
dup
invokespecial jdk.internal.net.http.common.Demand.<init>:()V
putfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.writeDemand:Ljdk/internal/net/http/common/Demand;
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/net/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=4, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.subscription:Ljdk/internal/net/http/SocketTube$InternalWriteSubscriber$WriteSubscription;
astore 2
start local 2 1: aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
getfield jdk.internal.net.http.SocketTube.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 2
aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
getfield jdk.internal.net.http.SocketTube.debug:Ljdk/internal/net/http/common/Logger;
ldc "subscribed for writing"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
2: StackMap locals: jdk.internal.net.http.SocketTube$InternalWriteSubscriber$WriteSubscription
StackMap stack:
aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.current:Ljava/util/List;
ifnonnull 3
iconst_1
goto 4
StackMap locals:
StackMap stack:
3: iconst_0
StackMap locals:
StackMap stack: int
4: istore 3
start local 3 5: iload 3
ifeq 8
6: aload 2
ifnull 8
aload 2
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber$WriteSubscription.upstreamSubscription:Ljava/util/concurrent/Flow$Subscription;
aload 1
if_acmpeq 8
7: aload 2
invokevirtual jdk.internal.net.http.SocketTube$InternalWriteSubscriber$WriteSubscription.dropSubscription:()V
8: StackMap locals: int
StackMap stack:
aload 0
new jdk.internal.net.http.SocketTube$InternalWriteSubscriber$WriteSubscription
dup
aload 0
aload 1
invokespecial jdk.internal.net.http.SocketTube$InternalWriteSubscriber$WriteSubscription.<init>:(Ljdk/internal/net/http/SocketTube$InternalWriteSubscriber;Ljava/util/concurrent/Flow$Subscription;)V
putfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.subscription:Ljdk/internal/net/http/SocketTube$InternalWriteSubscriber$WriteSubscription;
9: iload 3
ifeq 16
10: aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
getfield jdk.internal.net.http.SocketTube.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 12
11: aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
getfield jdk.internal.net.http.SocketTube.debug:Ljdk/internal/net/http/common/Logger;
ldc "write: registering startSubscription event"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
12: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
getfield jdk.internal.net.http.SocketTube.client:Ljdk/internal/net/http/HttpClientImpl;
aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.startSubscription:Ljdk/internal/net/http/AsyncTriggerEvent;
invokevirtual jdk.internal.net.http.HttpClientImpl.registerEvent:(Ljdk/internal/net/http/AsyncEvent;)V
end local 3 13: goto 16
StackMap locals: jdk.internal.net.http.SocketTube$InternalWriteSubscriber java.util.concurrent.Flow$Subscription jdk.internal.net.http.SocketTube$InternalWriteSubscriber$WriteSubscription
StackMap stack: java.lang.Throwable
14: astore 3
start local 3 15: aload 0
aload 3
invokevirtual jdk.internal.net.http.SocketTube$InternalWriteSubscriber.signalError:(Ljava/lang/Throwable;)V
end local 3 16: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Ljdk/internal/net/http/SocketTube$InternalWriteSubscriber;
0 17 1 subscription Ljava/util/concurrent/Flow$Subscription;
1 17 2 previous Ljdk/internal/net/http/SocketTube$InternalWriteSubscriber$WriteSubscription;
5 13 3 needEvent Z
15 16 3 t Ljava/lang/Throwable;
Exception table:
from to target type
2 13 14 Class java.lang.Throwable
MethodParameters:
Name Flags
subscription
public void onNext(java.util.List<java.nio.ByteBuffer>);
descriptor: (Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: getstatic jdk.internal.net.http.SocketTube$InternalWriteSubscriber.$assertionsDisabled:Z
ifne 2
aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.current:Ljava/util/List;
ifnull 2
new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
invokevirtual jdk.internal.net.http.SocketTube.dbgString:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: ldc "w.onNext current: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.current:Ljava/util/List;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
2: StackMap locals:
StackMap stack:
getstatic jdk.internal.net.http.SocketTube$InternalWriteSubscriber.$assertionsDisabled:Z
ifne 4
aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.subscription:Ljdk/internal/net/http/SocketTube$InternalWriteSubscriber$WriteSubscription;
ifnonnull 4
new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
invokevirtual jdk.internal.net.http.SocketTube.dbgString:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
3: ldc "w.onNext: subscription is null"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.current:Ljava/util/List;
5: aload 0
aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
getfield jdk.internal.net.http.SocketTube.client:Ljdk/internal/net/http/HttpClientImpl;
invokevirtual jdk.internal.net.http.HttpClientImpl.isSelectorThread:()Z
invokevirtual jdk.internal.net.http.SocketTube$InternalWriteSubscriber.tryFlushCurrent:(Z)V
6: aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
ldc "leaving w.onNext"
invokevirtual jdk.internal.net.http.SocketTube.debugState:(Ljava/lang/String;)V
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/internal/net/http/SocketTube$InternalWriteSubscriber;
0 8 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=7, locals=8, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.net.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.internal.net.http.SocketTube$InternalWriteSubscriber.$assertionsDisabled:Z
ifne 9
iload 1
aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
getfield jdk.internal.net.http.SocketTube.client:Ljdk/internal/net/http/HttpClientImpl;
invokevirtual jdk.internal.net.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.internal.net.http.SocketTube$InternalWriteSubscriber int java.util.List
StackMap stack: new 3 new 3 java.lang.StringBuilder
5: ldc "not "
StackMap locals: jdk.internal.net.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.internal.net.http.common.Utils.remaining:(Ljava/util/List;)J
lstore 3
start local 3 10: aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
getfield jdk.internal.net.http.SocketTube.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 11
aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
getfield jdk.internal.net.http.SocketTube.debug:Ljdk/internal/net/http/common/Logger;
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 jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;[Ljava/lang/Object;)V
11: StackMap locals: long
StackMap stack:
aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
aload 2
invokevirtual jdk.internal.net.http.SocketTube.writeAvailable:(Ljava/util/List;)J
lstore 5
start local 5 12: aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
getfield jdk.internal.net.http.SocketTube.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 13
aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
getfield jdk.internal.net.http.SocketTube.debug:Ljdk/internal/net/http/common/Logger;
ldc "wrote: %d"
iconst_1
anewarray java.lang.Object
dup
iconst_0
lload 5
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;[Ljava/lang/Object;)V
13: StackMap locals: long
StackMap stack:
getstatic jdk.internal.net.http.SocketTube$InternalWriteSubscriber.$assertionsDisabled:Z
ifne 14
lload 5
lconst_0
lcmp
ifge 14
new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "negative number of bytes written:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
lload 5
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
14: StackMap locals:
StackMap stack:
getstatic jdk.internal.net.http.SocketTube$InternalWriteSubscriber.$assertionsDisabled:Z
ifne 15
lload 5
lload 3
lcmp
ifle 15
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
15: StackMap locals:
StackMap stack:
lload 3
lload 5
lsub
lconst_0
lcmp
ifne 26
16: aload 0
aconst_null
putfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.current:Ljava/util/List;
17: aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.writeDemand:Ljdk/internal/net/http/common/Demand;
invokevirtual jdk.internal.net.http.common.Demand.tryDecrement:()Z
ifeq 30
18: aload 0
invokedynamic run(Ljdk/internal/net/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/internal/net/http/SocketTube$InternalWriteSubscriber.requestMore()V (5)
()V
astore 7
start local 7 19: iload 1
ifeq 23
20: getstatic jdk.internal.net.http.SocketTube$InternalWriteSubscriber.$assertionsDisabled:Z
ifne 21
aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
getfield jdk.internal.net.http.SocketTube.client:Ljdk/internal/net/http/HttpClientImpl;
invokevirtual jdk.internal.net.http.HttpClientImpl.isSelectorThread:()Z
ifne 21
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
21: StackMap locals: java.lang.Runnable
StackMap stack:
aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
getfield jdk.internal.net.http.SocketTube.client:Ljdk/internal/net/http/HttpClientImpl;
invokevirtual jdk.internal.net.http.HttpClientImpl.theExecutor:()Ljdk/internal/net/http/HttpClientImpl$DelegatingExecutor;
aload 7
invokevirtual jdk.internal.net.http.HttpClientImpl$DelegatingExecutor.execute:(Ljava/lang/Runnable;)V
22: goto 30
23: StackMap locals:
StackMap stack:
getstatic jdk.internal.net.http.SocketTube$InternalWriteSubscriber.$assertionsDisabled:Z
ifne 24
aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
getfield jdk.internal.net.http.SocketTube.client:Ljdk/internal/net/http/HttpClientImpl;
invokevirtual jdk.internal.net.http.HttpClientImpl.isSelectorThread:()Z
ifeq 24
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
24: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.lang.Runnable.run:()V
end local 7 25: goto 30
26: StackMap locals:
StackMap stack:
aload 0
iload 1
invokevirtual jdk.internal.net.http.SocketTube$InternalWriteSubscriber.resumeWriteEvent:(Z)V
end local 5 end local 3 27: goto 30
StackMap locals: jdk.internal.net.http.SocketTube$InternalWriteSubscriber int java.util.List
StackMap stack: java.lang.Throwable
28: astore 3
start local 3 29: aload 0
aload 3
invokevirtual jdk.internal.net.http.SocketTube$InternalWriteSubscriber.signalError:(Ljava/lang/Throwable;)V
end local 3 30: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 this Ljdk/internal/net/http/SocketTube$InternalWriteSubscriber;
0 31 1 inSelectorThread Z
1 31 2 bufs Ljava/util/List<Ljava/nio/ByteBuffer;>;
10 27 3 remaining J
12 27 5 written J
19 25 7 requestMore Ljava/lang/Runnable;
29 30 3 t Ljava/lang/Throwable;
Exception table:
from to target type
2 27 28 Class java.lang.Throwable
MethodParameters:
Name Flags
inSelectorThread
void startSubscription();
descriptor: ()V
flags: (0x0000)
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
getfield jdk.internal.net.http.SocketTube.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 1
aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
getfield jdk.internal.net.http.SocketTube.debug:Ljdk/internal/net/http/common/Logger;
ldc "write: starting subscription"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
1: StackMap locals:
StackMap stack:
invokestatic jdk.internal.net.http.common.Log.channel:()Z
ifeq 5
2: ldc "Start requesting bytes for writing to channel: {0}"
iconst_1
anewarray java.lang.Object
dup
iconst_0
3: aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
invokevirtual jdk.internal.net.http.SocketTube.channelDescr:()Ljava/lang/String;
aastore
4: invokestatic jdk.internal.net.http.common.Log.logChannel:(Ljava/lang/String;[Ljava/lang/Object;)V
5: StackMap locals:
StackMap stack:
getstatic jdk.internal.net.http.SocketTube$InternalWriteSubscriber.$assertionsDisabled:Z
ifne 6
aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
getfield jdk.internal.net.http.SocketTube.client:Ljdk/internal/net/http/HttpClientImpl;
invokevirtual jdk.internal.net.http.HttpClientImpl.isSelectorThread:()Z
ifne 6
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
6: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
getfield jdk.internal.net.http.SocketTube.readPublisher:Ljdk/internal/net/http/SocketTube$InternalReadPublisher;
getfield jdk.internal.net.http.SocketTube$InternalReadPublisher.subscriptionImpl:Ljdk/internal/net/http/SocketTube$InternalReadPublisher$InternalReadSubscription;
invokevirtual jdk.internal.net.http.SocketTube$InternalReadPublisher$InternalReadSubscription.handlePending:()Z
pop
7: aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
getfield jdk.internal.net.http.SocketTube.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 8
aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
getfield jdk.internal.net.http.SocketTube.debug:Ljdk/internal/net/http/common/Logger;
ldc "write: offloading requestMore"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
8: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
getfield jdk.internal.net.http.SocketTube.client:Ljdk/internal/net/http/HttpClientImpl;
invokevirtual jdk.internal.net.http.HttpClientImpl.theExecutor:()Ljdk/internal/net/http/HttpClientImpl$DelegatingExecutor;
aload 0
invokedynamic run(Ljdk/internal/net/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/internal/net/http/SocketTube$InternalWriteSubscriber.requestMore()V (5)
()V
invokevirtual jdk.internal.net.http.HttpClientImpl$DelegatingExecutor.execute:(Ljava/lang/Runnable;)V
9: goto 12
StackMap locals:
StackMap stack: java.lang.Throwable
10: astore 1
start local 1 11: aload 0
aload 1
invokevirtual jdk.internal.net.http.SocketTube$InternalWriteSubscriber.signalError:(Ljava/lang/Throwable;)V
end local 1 12: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljdk/internal/net/http/SocketTube$InternalWriteSubscriber;
11 12 1 t Ljava/lang/Throwable;
Exception table:
from to target type
0 9 10 Class java.lang.Throwable
void requestMore();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.subscription:Ljdk/internal/net/http/SocketTube$InternalWriteSubscriber$WriteSubscription;
astore 1
start local 1 1: aload 1
invokevirtual jdk.internal.net.http.SocketTube$InternalWriteSubscriber$WriteSubscription.requestMore:()V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/net/http/SocketTube$InternalWriteSubscriber;
1 3 1 subscription Ljdk/internal/net/http/SocketTube$InternalWriteSubscriber$WriteSubscription;
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.internal.net.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/internal/net/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=7, locals=4, args_size=1
start local 0 0: aload 0
iconst_1
putfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.completed:Z
1: aload 0
getfield jdk.internal.net.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.internal.net.http.common.Utils.remaining:(Ljava/util/List;)J
StackMap locals:
StackMap stack: long
4: lstore 2
start local 2 5: aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
getfield jdk.internal.net.http.SocketTube.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 7
6: aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
getfield jdk.internal.net.http.SocketTube.debug:Ljdk/internal/net/http/common/Logger;
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 jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;[Ljava/lang/Object;)V
7: StackMap locals: long
StackMap stack:
aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
ldc "InternalWriteSubscriber::onComplete"
invokevirtual jdk.internal.net.http.SocketTube.debugState:(Ljava/lang/String;)V
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/internal/net/http/SocketTube$InternalWriteSubscriber;
2 9 1 bufs Ljava/util/List<Ljava/nio/ByteBuffer;>;
5 9 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.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
getfield jdk.internal.net.http.SocketTube.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 1
aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
getfield jdk.internal.net.http.SocketTube.debug:Ljdk/internal/net/http/common/Logger;
ldc "scheduling write event"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
1: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.writeEvent:Ljdk/internal/net/http/SocketTube$InternalWriteSubscriber$WriteEvent;
aload 0
invokedynamic accept(Ljdk/internal/net/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/internal/net/http/SocketTube$InternalWriteSubscriber.signalError(Ljava/lang/Throwable;)V (5)
(Ljava/lang/Throwable;)V
invokevirtual jdk.internal.net.http.SocketTube.resumeEvent:(Ljdk/internal/net/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/internal/net/http/SocketTube$InternalWriteSubscriber;
0 3 1 inSelectorThread Z
MethodParameters:
Name Flags
inSelectorThread
void signalWritable();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
getfield jdk.internal.net.http.SocketTube.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 1
aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
getfield jdk.internal.net.http.SocketTube.debug:Ljdk/internal/net/http/common/Logger;
ldc "channel is writable"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
1: StackMap locals:
StackMap stack:
aload 0
iconst_1
invokevirtual jdk.internal.net.http.SocketTube$InternalWriteSubscriber.tryFlushCurrent:(Z)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/net/http/SocketTube$InternalWriteSubscriber;
void signalError(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0000)
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
getfield jdk.internal.net.http.SocketTube.debug:Ljdk/internal/net/http/common/Logger;
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/internal/net/http/SocketTube$InternalWriteSubscriber.lambda$5(Ljava/lang/Throwable;)Ljava/lang/String; (6)
()Ljava/lang/String;
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/util/function/Supplier;)V
1: invokestatic jdk.internal.net.http.common.Log.channel:()Z
ifeq 5
2: ldc "Failed to write to channel ({0}: {1})"
iconst_2
anewarray java.lang.Object
dup
iconst_0
3: aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
invokevirtual jdk.internal.net.http.SocketTube.channelDescr:()Ljava/lang/String;
aastore
dup
iconst_1
aload 1
aastore
4: invokestatic jdk.internal.net.http.common.Log.logChannel:(Ljava/lang/String;[Ljava/lang/Object;)V
5: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.completed:Z
6: aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
getfield jdk.internal.net.http.SocketTube.readPublisher:Ljdk/internal/net/http/SocketTube$InternalReadPublisher;
aload 1
invokevirtual jdk.internal.net.http.SocketTube$InternalReadPublisher.signalError:(Ljava/lang/Throwable;)V
7: aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.subscription:Ljdk/internal/net/http/SocketTube$InternalWriteSubscriber$WriteSubscription;
astore 2
start local 2 8: aload 2
ifnull 9
aload 2
invokeinterface java.util.concurrent.Flow$Subscription.cancel:()V
9: StackMap locals: java.util.concurrent.Flow$Subscription
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/internal/net/http/SocketTube$InternalWriteSubscriber;
0 10 1 error Ljava/lang/Throwable;
8 10 2 subscription Ljava/util/concurrent/Flow$Subscription;
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.internal.net.http.SocketTube$InternalWriteSubscriber.onNext:(Ljava/util/List;)V
return
LocalVariableTable:
Start End Slot Name Signature
static jdk.internal.net.http.SocketTube access$1(jdk.internal.net.http.SocketTube$InternalWriteSubscriber);
descriptor: (Ljdk/internal/net/http/SocketTube$InternalWriteSubscriber;)Ljdk/internal/net/http/SocketTube;
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.this$0:Ljdk/internal/net/http/SocketTube;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.lang.String lambda$5(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.internal.net.http.SocketTube
InnerClasses:
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
final DelegatingExecutor = jdk.internal.net.http.HttpClientImpl$DelegatingExecutor of jdk.internal.net.http.HttpClientImpl
private final InternalReadPublisher = jdk.internal.net.http.SocketTube$InternalReadPublisher of jdk.internal.net.http.SocketTube
final InternalReadSubscription = jdk.internal.net.http.SocketTube$InternalReadPublisher$InternalReadSubscription of jdk.internal.net.http.SocketTube$InternalReadPublisher
private final InternalWriteSubscriber = jdk.internal.net.http.SocketTube$InternalWriteSubscriber of jdk.internal.net.http.SocketTube
final WriteEvent = jdk.internal.net.http.SocketTube$InternalWriteSubscriber$WriteEvent of jdk.internal.net.http.SocketTube$InternalWriteSubscriber
final WriteSubscription = jdk.internal.net.http.SocketTube$InternalWriteSubscriber$WriteSubscription of jdk.internal.net.http.SocketTube$InternalWriteSubscriber
private abstract SocketFlowEvent = jdk.internal.net.http.SocketTube$SocketFlowEvent of jdk.internal.net.http.SocketTube