final class jdk.incubator.http.SocketTube implements jdk.incubator.http.internal.common.FlowTube
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.incubator.http.SocketTube
super_class: java.lang.Object
{
static final boolean DEBUG;
descriptor: Z
flags: (0x0018) ACC_STATIC, ACC_FINAL
final java.lang.System$Logger debug;
descriptor: Ljava/lang/System$Logger;
flags: (0x0010) ACC_FINAL
static final java.util.concurrent.atomic.AtomicLong IDS;
descriptor: Ljava/util/concurrent/atomic/AtomicLong;
flags: (0x0018) ACC_STATIC, ACC_FINAL
private final jdk.incubator.http.HttpClientImpl client;
descriptor: Ljdk/incubator/http/HttpClientImpl;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.nio.channels.SocketChannel channel;
descriptor: Ljava/nio/channels/SocketChannel;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.function.Supplier<java.nio.ByteBuffer> ;
descriptor: Ljava/util/function/Supplier;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/function/Supplier<Ljava/nio/ByteBuffer;>;
private final java.lang.Object lock;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.atomic.AtomicReference<java.lang.Throwable> errorRef;
descriptor: Ljava/util/concurrent/atomic/AtomicReference;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicReference<Ljava/lang/Throwable;>;
private final jdk.incubator.http.SocketTube$InternalReadPublisher readPublisher;
descriptor: Ljdk/incubator/http/SocketTube$InternalReadPublisher;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.incubator.http.SocketTube$InternalWriteSubscriber writeSubscriber;
descriptor: Ljdk/incubator/http/SocketTube$InternalWriteSubscriber;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final long id;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static final int MAX_BUFFERS;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 3
static final java.util.List<java.nio.ByteBuffer> EOF;
descriptor: Ljava/util/List;
flags: (0x0018) ACC_STATIC, ACC_FINAL
Signature: Ljava/util/List<Ljava/nio/ByteBuffer;>;
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=2, 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.$assertionsDisabled:Z
3: getstatic jdk.incubator.http.internal.common.Utils.DEBUG:Z
putstatic jdk.incubator.http.SocketTube.DEBUG:Z
4: new java.util.concurrent.atomic.AtomicLong
dup
invokespecial java.util.concurrent.atomic.AtomicLong.<init>:()V
putstatic jdk.incubator.http.SocketTube.IDS:Ljava/util/concurrent/atomic/AtomicLong;
5: invokestatic java.util.List.of:()Ljava/util/List;
putstatic jdk.incubator.http.SocketTube.EOF:Ljava/util/List;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(jdk.incubator.http.HttpClientImpl, java.nio.channels.SocketChannel, java.util.function.Supplier<java.nio.ByteBuffer>);
descriptor: (Ljdk/incubator/http/HttpClientImpl;Ljava/nio/channels/SocketChannel;Ljava/util/function/Supplier;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 0
invokedynamic get(Ljdk/incubator/http/SocketTube;)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.dbgString()Ljava/lang/String; (5)
()Ljava/lang/String;
getstatic jdk.incubator.http.SocketTube.DEBUG:Z
invokestatic jdk.incubator.http.internal.common.Utils.getDebugLogger:(Ljava/util/function/Supplier;Z)Ljava/lang/System$Logger;
putfield jdk.incubator.http.SocketTube.debug:Ljava/lang/System$Logger;
2: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield jdk.incubator.http.SocketTube.lock:Ljava/lang/Object;
3: aload 0
new java.util.concurrent.atomic.AtomicReference
dup
invokespecial java.util.concurrent.atomic.AtomicReference.<init>:()V
putfield jdk.incubator.http.SocketTube.errorRef:Ljava/util/concurrent/atomic/AtomicReference;
4: aload 0
getstatic jdk.incubator.http.SocketTube.IDS:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.incrementAndGet:()J
putfield jdk.incubator.http.SocketTube.id:J
5: aload 0
aload 1
putfield jdk.incubator.http.SocketTube.client:Ljdk/incubator/http/HttpClientImpl;
6: aload 0
aload 2
putfield jdk.incubator.http.SocketTube.channel:Ljava/nio/channels/SocketChannel;
7: aload 0
aload 3
putfield jdk.incubator.http.SocketTube.buffersSource:Ljava/util/function/Supplier;
8: aload 0
new jdk.incubator.http.SocketTube$InternalReadPublisher
dup
aload 0
invokespecial jdk.incubator.http.SocketTube$InternalReadPublisher.<init>:(Ljdk/incubator/http/SocketTube;)V
putfield jdk.incubator.http.SocketTube.readPublisher:Ljdk/incubator/http/SocketTube$InternalReadPublisher;
9: aload 0
new jdk.incubator.http.SocketTube$InternalWriteSubscriber
dup
aload 0
invokespecial jdk.incubator.http.SocketTube$InternalWriteSubscriber.<init>:(Ljdk/incubator/http/SocketTube;)V
putfield jdk.incubator.http.SocketTube.writeSubscriber:Ljdk/incubator/http/SocketTube$InternalWriteSubscriber;
10: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljdk/incubator/http/SocketTube;
0 11 1 client Ljdk/incubator/http/HttpClientImpl;
0 11 2 channel Ljava/nio/channels/SocketChannel;
0 11 3 buffersSource Ljava/util/function/Supplier<Ljava/nio/ByteBuffer;>;
Signature: (Ljdk/incubator/http/HttpClientImpl;Ljava/nio/channels/SocketChannel;Ljava/util/function/Supplier<Ljava/nio/ByteBuffer;>;)V
MethodParameters:
Name Flags
client
channel
buffersSource
public boolean isFinished();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.SocketTube.readPublisher:Ljdk/incubator/http/SocketTube$InternalReadPublisher;
getfield jdk.incubator.http.SocketTube$InternalReadPublisher.subscriptionImpl:Ljdk/incubator/http/SocketTube$InternalReadPublisher$InternalReadSubscription;
1: astore 1
start local 1 2: aload 1
ifnull 3
aload 1
getfield jdk.incubator.http.SocketTube$InternalReadPublisher$InternalReadSubscription.completed:Z
ifne 5
3: StackMap locals: jdk.incubator.http.SocketTube$InternalReadPublisher$InternalReadSubscription
StackMap stack:
aload 1
ifnonnull 4
aload 0
getfield jdk.incubator.http.SocketTube.errorRef:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
ifnonnull 5
4: StackMap locals:
StackMap stack:
iconst_0
ireturn
StackMap locals:
StackMap stack:
5: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/incubator/http/SocketTube;
2 6 1 subscription Ljdk/incubator/http/SocketTube$InternalReadPublisher$InternalReadSubscription;
public void subscribe(java.util.concurrent.Flow$Subscriber<? super java.util.List<java.nio.ByteBuffer>>);
descriptor: (Ljava/util/concurrent/Flow$Subscriber;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: getstatic jdk.incubator.http.SocketTube.$assertionsDisabled:Z
ifne 2
aload 1
instanceof jdk.incubator.http.internal.common.FlowTube$TubeSubscriber
ifne 2
new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "Expected TubeSubscriber, got:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
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:
aload 0
getfield jdk.incubator.http.SocketTube.readPublisher:Ljdk/incubator/http/SocketTube$InternalReadPublisher;
aload 1
invokevirtual jdk.incubator.http.SocketTube$InternalReadPublisher.subscribe:(Ljava/util/concurrent/Flow$Subscriber;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/incubator/http/SocketTube;
0 4 1 s Ljava/util/concurrent/Flow$Subscriber<-Ljava/util/List<Ljava/nio/ByteBuffer;>;>;
Signature: (Ljava/util/concurrent/Flow$Subscriber<-Ljava/util/List<Ljava/nio/ByteBuffer;>;>;)V
MethodParameters:
Name Flags
s
public void onSubscribe(java.util.concurrent.Flow$Subscription);
descriptor: (Ljava/util/concurrent/Flow$Subscription;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.SocketTube.writeSubscriber:Ljdk/incubator/http/SocketTube$InternalWriteSubscriber;
aload 1
invokevirtual jdk.incubator.http.SocketTube$InternalWriteSubscriber.onSubscribe:(Ljava/util/concurrent/Flow$Subscription;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/incubator/http/SocketTube;
0 2 1 subscription 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: aload 0
getfield jdk.incubator.http.SocketTube.writeSubscriber:Ljdk/incubator/http/SocketTube$InternalWriteSubscriber;
aload 1
invokevirtual jdk.incubator.http.SocketTube$InternalWriteSubscriber.onNext:(Ljava/util/List;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/incubator/http/SocketTube;
0 2 1 item Ljava/util/List<Ljava/nio/ByteBuffer;>;
Signature: (Ljava/util/List<Ljava/nio/ByteBuffer;>;)V
MethodParameters:
Name Flags
item
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
getfield jdk.incubator.http.SocketTube.writeSubscriber:Ljdk/incubator/http/SocketTube$InternalWriteSubscriber;
aload 1
invokevirtual jdk.incubator.http.SocketTube$InternalWriteSubscriber.onError:(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;
0 2 1 throwable Ljava/lang/Throwable;
MethodParameters:
Name Flags
throwable
public void onComplete();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.SocketTube.writeSubscriber:Ljdk/incubator/http/SocketTube$InternalWriteSubscriber;
invokevirtual jdk.incubator.http.SocketTube$InternalWriteSubscriber.onComplete:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/incubator/http/SocketTube;
void debugState(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=3, locals=14, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.SocketTube.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
invokeinterface java.lang.System$Logger.isLoggable:(Ljava/lang/System$Logger$Level;)Z
ifeq 35
1: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 2
start local 2 2: aload 0
getfield jdk.incubator.http.SocketTube.readPublisher:Ljdk/incubator/http/SocketTube$InternalReadPublisher;
getfield jdk.incubator.http.SocketTube$InternalReadPublisher.subscriptionImpl:Ljdk/incubator/http/SocketTube$InternalReadPublisher$InternalReadSubscription;
3: astore 3
start local 3 4: aload 3
ifnonnull 5
aconst_null
goto 6
StackMap locals: java.lang.StringBuilder jdk.incubator.http.SocketTube$InternalReadPublisher$InternalReadSubscription
StackMap stack:
5: aload 3
getfield jdk.incubator.http.SocketTube$InternalReadPublisher$InternalReadSubscription.readEvent:Ljdk/incubator/http/SocketTube$InternalReadPublisher$ReadEvent;
6: StackMap locals:
StackMap stack: jdk.incubator.http.SocketTube$InternalReadPublisher$ReadEvent
astore 4
start local 4 7: aload 3
ifnonnull 8
aconst_null
goto 9
StackMap locals: jdk.incubator.http.SocketTube$InternalReadPublisher$ReadEvent
StackMap stack:
8: aload 3
getfield jdk.incubator.http.SocketTube$InternalReadPublisher$InternalReadSubscription.demand:Ljdk/incubator/http/internal/common/Demand;
StackMap locals:
StackMap stack: jdk.incubator.http.internal.common.Demand
9: astore 5
start local 5 10: aload 0
getfield jdk.incubator.http.SocketTube.writeSubscriber:Ljdk/incubator/http/SocketTube$InternalWriteSubscriber;
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.writeEvent:Ljdk/incubator/http/SocketTube$InternalWriteSubscriber$WriteEvent;
11: astore 6
start local 6 12: aload 0
getfield jdk.incubator.http.SocketTube.writeSubscriber:Ljdk/incubator/http/SocketTube$InternalWriteSubscriber;
getfield jdk.incubator.http.SocketTube$InternalWriteSubscriber.writeDemand:Ljava/util/concurrent/atomic/AtomicLong;
astore 7
start local 7 13: aload 4
ifnonnull 14
iconst_0
goto 15
StackMap locals: jdk.incubator.http.internal.common.Demand jdk.incubator.http.SocketTube$InternalWriteSubscriber$WriteEvent java.util.concurrent.atomic.AtomicLong
StackMap stack:
14: aload 4
invokevirtual jdk.incubator.http.SocketTube$InternalReadPublisher$ReadEvent.interestOps:()I
StackMap locals:
StackMap stack: int
15: istore 8
start local 8 16: aload 5
ifnonnull 17
lconst_0
goto 18
StackMap locals: int
StackMap stack:
17: aload 5
invokevirtual jdk.incubator.http.internal.common.Demand.get:()J
StackMap locals:
StackMap stack: long
18: lstore 9
start local 9 19: aload 6
ifnonnull 20
iconst_0
goto 21
StackMap locals: long
StackMap stack:
20: aload 6
invokevirtual jdk.incubator.http.SocketTube$InternalWriteSubscriber$WriteEvent.interestOps:()I
StackMap locals:
StackMap stack: int
21: istore 11
start local 11 22: aload 7
ifnonnull 23
lconst_0
goto 24
StackMap locals: int
StackMap stack:
23: aload 7
invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
StackMap locals:
StackMap stack: long
24: lstore 12
start local 12 25: aload 2
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " Reading: [ops="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
26: iload 8
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ", demand="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
lload 9
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
27: ldc ", stopped="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
28: aload 3
ifnonnull 29
iconst_0
goto 30
StackMap locals: jdk.incubator.http.SocketTube java.lang.String java.lang.StringBuilder jdk.incubator.http.SocketTube$InternalReadPublisher$InternalReadSubscription jdk.incubator.http.SocketTube$InternalReadPublisher$ReadEvent jdk.incubator.http.internal.common.Demand jdk.incubator.http.SocketTube$InternalWriteSubscriber$WriteEvent java.util.concurrent.atomic.AtomicLong int long int long
StackMap stack: java.lang.StringBuilder
29: aload 3
getfield jdk.incubator.http.SocketTube$InternalReadPublisher$InternalReadSubscription.readScheduler:Ljdk/incubator/http/internal/common/SequentialScheduler;
invokevirtual jdk.incubator.http.internal.common.SequentialScheduler.isStopped:()Z
StackMap locals: jdk.incubator.http.SocketTube java.lang.String java.lang.StringBuilder jdk.incubator.http.SocketTube$InternalReadPublisher$InternalReadSubscription jdk.incubator.http.SocketTube$InternalReadPublisher$ReadEvent jdk.incubator.http.internal.common.Demand jdk.incubator.http.SocketTube$InternalWriteSubscriber$WriteEvent java.util.concurrent.atomic.AtomicLong int long int long
StackMap stack: java.lang.StringBuilder int
30: invokevirtual java.lang.StringBuilder.append:(Z)Ljava/lang/StringBuilder;
31: ldc "], Writing: [ops="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 11
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
32: ldc ", demand="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
lload 12
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
33: ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
34: aload 0
getfield jdk.incubator.http.SocketTube.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;)V
end local 12 end local 11 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 35: StackMap locals: jdk.incubator.http.SocketTube java.lang.String
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 36 0 this Ljdk/incubator/http/SocketTube;
0 36 1 when Ljava/lang/String;
2 35 2 state Ljava/lang/StringBuilder;
4 35 3 sub Ljdk/incubator/http/SocketTube$InternalReadPublisher$InternalReadSubscription;
7 35 4 readEvent Ljdk/incubator/http/SocketTube$InternalReadPublisher$ReadEvent;
10 35 5 rdemand Ljdk/incubator/http/internal/common/Demand;
12 35 6 writeEvent Ljdk/incubator/http/SocketTube$InternalWriteSubscriber$WriteEvent;
13 35 7 wdemand Ljava/util/concurrent/atomic/AtomicLong;
16 35 8 rops I
19 35 9 rd J
22 35 11 wops I
25 35 12 wd J
MethodParameters:
Name Flags
when
private java.util.List<java.nio.ByteBuffer> readAvailable();
descriptor: ()Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.SocketTube.buffersSource:Ljava/util/function/Supplier;
invokeinterface java.util.function.Supplier.get:()Ljava/lang/Object;
checkcast java.nio.ByteBuffer
astore 1
start local 1 1: getstatic jdk.incubator.http.SocketTube.$assertionsDisabled:Z
ifne 2
aload 1
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifne 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals: java.nio.ByteBuffer
StackMap stack:
aload 1
invokevirtual java.nio.ByteBuffer.position:()I
istore 3
start local 3 3: aconst_null
astore 4
start local 4 4: goto 24
start local 2 5: StackMap locals: int int java.util.List
StackMap stack:
aload 1
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifne 6
goto 8
end local 2 6: StackMap locals: jdk.incubator.http.SocketTube java.nio.ByteBuffer top int java.util.List
StackMap stack:
aload 0
getfield jdk.incubator.http.SocketTube.channel:Ljava/nio/channels/SocketChannel;
aload 1
invokevirtual java.nio.channels.SocketChannel.read:(Ljava/nio/ByteBuffer;)I
dup
istore 2
start local 2 7: ifgt 5
8: StackMap locals: jdk.incubator.http.SocketTube java.nio.ByteBuffer int int java.util.List
StackMap stack:
aload 1
invokevirtual java.nio.ByteBuffer.position:()I
iload 3
if_icmpne 12
9: aload 4
ifnonnull 12
iload 2
iconst_m1
if_icmpne 12
10: getstatic jdk.incubator.http.SocketTube.EOF:Ljava/util/List;
astore 4
11: goto 25
12: StackMap locals:
StackMap stack:
aload 1
aload 1
invokevirtual java.nio.ByteBuffer.position:()I
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/ByteBuffer;
pop
13: aload 1
iload 3
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/ByteBuffer;
pop
14: aload 4
ifnonnull 17
15: aload 1
invokestatic java.util.List.of:(Ljava/lang/Object;)Ljava/util/List;
astore 4
16: goto 20
17: StackMap locals:
StackMap stack:
aload 4
instanceof java.util.ArrayList
ifne 19
18: new java.util.ArrayList
dup
aload 4
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
astore 4
19: StackMap locals:
StackMap stack:
aload 4
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
20: StackMap locals:
StackMap stack:
iload 2
ifle 25
aload 4
invokeinterface java.util.List.size:()I
iconst_3
if_icmpne 21
goto 25
21: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.SocketTube.buffersSource:Ljava/util/function/Supplier;
invokeinterface java.util.function.Supplier.get:()Ljava/lang/Object;
checkcast java.nio.ByteBuffer
astore 1
22: aload 1
invokevirtual java.nio.ByteBuffer.position:()I
istore 3
23: getstatic jdk.incubator.http.SocketTube.$assertionsDisabled:Z
ifne 24
aload 1
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifne 24
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
end local 2 24: StackMap locals: jdk.incubator.http.SocketTube java.nio.ByteBuffer top int java.util.List
StackMap stack:
aload 1
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifne 6
25: StackMap locals:
StackMap stack:
aload 4
areturn
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Ljdk/incubator/http/SocketTube;
1 26 1 buf Ljava/nio/ByteBuffer;
5 6 2 read I
7 24 2 read I
3 26 3 pos I
4 26 4 list Ljava/util/List<Ljava/nio/ByteBuffer;>;
Exceptions:
throws java.io.IOException
Signature: ()Ljava/util/List<Ljava/nio/ByteBuffer;>;
private long writeAvailable(java.util.List<java.nio.ByteBuffer>);
descriptor: (Ljava/util/List;)J
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=9, args_size=2
start local 0 start local 1 0: aload 1
getstatic jdk.incubator.http.internal.common.Utils.EMPTY_BB_ARRAY:[Ljava/nio/ByteBuffer;
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast java.nio.ByteBuffer[]
astore 2
start local 2 1: aload 2
invokestatic jdk.incubator.http.internal.common.Utils.remaining:([Ljava/nio/ByteBuffer;)J
lstore 3
start local 3 2: lconst_0
lstore 5
start local 5 3: goto 8
4: StackMap locals: java.nio.ByteBuffer[] long long
StackMap stack:
aload 0
getfield jdk.incubator.http.SocketTube.channel:Ljava/nio/channels/SocketChannel;
aload 2
invokevirtual java.nio.channels.SocketChannel.write:([Ljava/nio/ByteBuffer;)J
lstore 7
start local 7 5: lload 7
ldc -1
lcmp
ifne 6
lload 5
lconst_0
lcmp
ifne 6
ldc -1
lreturn
6: StackMap locals: long
StackMap stack:
lload 7
lconst_0
lcmp
ifne 7
goto 9
7: StackMap locals:
StackMap stack:
lload 5
lload 7
ladd
lstore 5
end local 7 8: StackMap locals:
StackMap stack:
lload 3
lload 5
lcmp
ifgt 4
9: StackMap locals:
StackMap stack:
lload 5
lreturn
end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/incubator/http/SocketTube;
0 10 1 bytes Ljava/util/List<Ljava/nio/ByteBuffer;>;
1 10 2 srcs [Ljava/nio/ByteBuffer;
2 10 3 remaining J
3 10 5 written J
5 8 7 w J
Exceptions:
throws java.io.IOException
Signature: (Ljava/util/List<Ljava/nio/ByteBuffer;>;)J
MethodParameters:
Name Flags
bytes
private void resumeEvent(jdk.incubator.http.SocketTube$SocketFlowEvent, java.util.function.Consumer<java.lang.Throwable>);
descriptor: (Ljdk/incubator/http/SocketTube$SocketFlowEvent;Ljava/util/function/Consumer;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.incubator.http.SocketTube.lock:Ljava/lang/Object;
dup
astore 4
monitorenter
1: aload 1
invokevirtual jdk.incubator.http.SocketTube$SocketFlowEvent.registered:()Z
ifeq 2
iconst_0
goto 3
StackMap locals: jdk.incubator.http.SocketTube jdk.incubator.http.SocketTube$SocketFlowEvent java.util.function.Consumer top java.lang.Object
StackMap stack:
2: iconst_1
StackMap locals:
StackMap stack: int
3: istore 3
start local 3 4: aload 1
invokevirtual jdk.incubator.http.SocketTube$SocketFlowEvent.resume:()V
5: aload 4
monitorexit
6: goto 9
end local 3 StackMap locals:
StackMap stack: java.lang.Throwable
7: aload 4
monitorexit
8: athrow
start local 3 9: StackMap locals: jdk.incubator.http.SocketTube jdk.incubator.http.SocketTube$SocketFlowEvent java.util.function.Consumer int
StackMap stack:
iload 3
ifeq 12
10: aload 0
getfield jdk.incubator.http.SocketTube.client:Ljdk/incubator/http/HttpClientImpl;
aload 1
invokevirtual jdk.incubator.http.HttpClientImpl.registerEvent:(Ljdk/incubator/http/AsyncEvent;)V
11: goto 16
12: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.SocketTube.client:Ljdk/incubator/http/HttpClientImpl;
aload 1
invokevirtual jdk.incubator.http.HttpClientImpl.eventUpdated:(Ljdk/incubator/http/AsyncEvent;)V
13: goto 16
StackMap locals:
StackMap stack: java.lang.Throwable
14: astore 4
start local 4 15: aload 2
aload 4
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
end local 4 16: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Ljdk/incubator/http/SocketTube;
0 17 1 event Ljdk/incubator/http/SocketTube$SocketFlowEvent;
0 17 2 errorSignaler Ljava/util/function/Consumer<Ljava/lang/Throwable;>;
4 7 3 registrationRequired Z
9 17 3 registrationRequired Z
15 16 4 t Ljava/lang/Throwable;
Exception table:
from to target type
1 6 7 any
7 8 7 any
9 13 14 Class java.lang.Throwable
Signature: (Ljdk/incubator/http/SocketTube$SocketFlowEvent;Ljava/util/function/Consumer<Ljava/lang/Throwable;>;)V
MethodParameters:
Name Flags
event
errorSignaler
private void pauseEvent(jdk.incubator.http.SocketTube$SocketFlowEvent, java.util.function.Consumer<java.lang.Throwable>);
descriptor: (Ljdk/incubator/http/SocketTube$SocketFlowEvent;Ljava/util/function/Consumer;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.incubator.http.SocketTube.lock:Ljava/lang/Object;
dup
astore 3
monitorenter
1: aload 1
invokevirtual jdk.incubator.http.SocketTube$SocketFlowEvent.pause:()V
2: aload 3
monitorexit
3: goto 6
StackMap locals: jdk.incubator.http.SocketTube jdk.incubator.http.SocketTube$SocketFlowEvent java.util.function.Consumer java.lang.Object
StackMap stack: java.lang.Throwable
4: aload 3
monitorexit
5: athrow
6: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.SocketTube.client:Ljdk/incubator/http/HttpClientImpl;
aload 1
invokevirtual jdk.incubator.http.HttpClientImpl.eventUpdated:(Ljdk/incubator/http/AsyncEvent;)V
7: goto 10
StackMap locals:
StackMap stack: java.lang.Throwable
8: astore 3
start local 3 9: aload 2
aload 3
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
end local 3 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;
0 11 1 event Ljdk/incubator/http/SocketTube$SocketFlowEvent;
0 11 2 errorSignaler Ljava/util/function/Consumer<Ljava/lang/Throwable;>;
9 10 3 t Ljava/lang/Throwable;
Exception table:
from to target type
1 3 4 any
4 5 4 any
6 7 8 Class java.lang.Throwable
Signature: (Ljdk/incubator/http/SocketTube$SocketFlowEvent;Ljava/util/function/Consumer<Ljava/lang/Throwable;>;)V
MethodParameters:
Name Flags
event
errorSignaler
public void connectFlows(jdk.incubator.http.internal.common.FlowTube$TubePublisher, jdk.incubator.http.internal.common.FlowTube$TubeSubscriber);
descriptor: (Ljdk/incubator/http/internal/common/FlowTube$TubePublisher;Ljdk/incubator/http/internal/common/FlowTube$TubeSubscriber;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.incubator.http.SocketTube.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
ldc "connecting flows"
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;)V
1: aload 0
aload 2
invokevirtual jdk.incubator.http.SocketTube.subscribe:(Ljava/util/concurrent/Flow$Subscriber;)V
2: aload 1
aload 0
invokeinterface jdk.incubator.http.internal.common.FlowTube$TubePublisher.subscribe:(Ljava/util/concurrent/Flow$Subscriber;)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/incubator/http/SocketTube;
0 4 1 writePublisher Ljdk/incubator/http/internal/common/FlowTube$TubePublisher;
0 4 2 readSubscriber Ljdk/incubator/http/internal/common/FlowTube$TubeSubscriber;
MethodParameters:
Name Flags
writePublisher
readSubscriber
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual jdk.incubator.http.SocketTube.dbgString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/SocketTube;
final java.lang.String dbgString();
descriptor: ()Ljava/lang/String;
flags: (0x0010) ACC_FINAL
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "SocketTube("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield jdk.incubator.http.SocketTube.id:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/SocketTube;
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.onNext:(Ljava/util/List;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "SocketTube.java"
NestMembers:
jdk.incubator.http.SocketTube$InternalReadPublisher jdk.incubator.http.SocketTube$InternalReadPublisher$InternalReadSubscription jdk.incubator.http.SocketTube$InternalReadPublisher$ReadEvent jdk.incubator.http.SocketTube$InternalReadPublisher$ReadSubscription jdk.incubator.http.SocketTube$InternalWriteSubscriber jdk.incubator.http.SocketTube$InternalWriteSubscriber$WriteEvent jdk.incubator.http.SocketTube$SocketFlowEvent jdk.incubator.http.SocketTube$SocketFlowTask
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
final InternalReadSubscription = jdk.incubator.http.SocketTube$InternalReadPublisher$InternalReadSubscription of jdk.incubator.http.SocketTube$InternalReadPublisher
final ReadEvent = jdk.incubator.http.SocketTube$InternalReadPublisher$ReadEvent of jdk.incubator.http.SocketTube$InternalReadPublisher
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
private SocketFlowTask = jdk.incubator.http.SocketTube$SocketFlowTask of jdk.incubator.http.SocketTube
public abstract TubePublisher = jdk.incubator.http.internal.common.FlowTube$TubePublisher of jdk.incubator.http.internal.common.FlowTube
public abstract TubeSubscriber = jdk.incubator.http.internal.common.FlowTube$TubeSubscriber of jdk.incubator.http.internal.common.FlowTube