final class jdk.internal.net.http.SocketTube implements jdk.internal.net.http.common.FlowTube
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.internal.net.http.SocketTube
super_class: java.lang.Object
{
final jdk.internal.net.http.common.Logger debug;
descriptor: Ljdk/internal/net/http/common/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.internal.net.http.HttpClientImpl client;
descriptor: Ljdk/internal/net/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 jdk.internal.net.http.SocketTube$SliceBufferSource ;
descriptor: Ljdk/internal/net/http/SocketTube$SliceBufferSource;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
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.internal.net.http.SocketTube$InternalReadPublisher readPublisher;
descriptor: Ljdk/internal/net/http/SocketTube$InternalReadPublisher;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.internal.net.http.SocketTube$InternalWriteSubscriber writeSubscriber;
descriptor: Ljdk/internal/net/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 java.util.List<java.nio.ByteBuffer> NOTHING;
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/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.$assertionsDisabled:Z
3: new java.util.concurrent.atomic.AtomicLong
dup
invokespecial java.util.concurrent.atomic.AtomicLong.<init>:()V
putstatic jdk.internal.net.http.SocketTube.IDS:Ljava/util/concurrent/atomic/AtomicLong;
4: invokestatic java.util.List.of:()Ljava/util/List;
putstatic jdk.internal.net.http.SocketTube.EOF:Ljava/util/List;
5: getstatic jdk.internal.net.http.common.Utils.EMPTY_BYTEBUFFER:Ljava/nio/ByteBuffer;
invokestatic java.util.List.of:(Ljava/lang/Object;)Ljava/util/List;
putstatic jdk.internal.net.http.SocketTube.NOTHING:Ljava/util/List;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(jdk.internal.net.http.HttpClientImpl, java.nio.channels.SocketChannel, java.util.function.Supplier<java.nio.ByteBuffer>);
descriptor: (Ljdk/internal/net/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/internal/net/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/internal/net/http/SocketTube.dbgString()Ljava/lang/String; (5)
()Ljava/lang/String;
getstatic jdk.internal.net.http.common.Utils.DEBUG:Z
invokestatic jdk.internal.net.http.common.Utils.getDebugLogger:(Ljava/util/function/Supplier;Z)Ljdk/internal/net/http/common/Logger;
putfield jdk.internal.net.http.SocketTube.debug:Ljdk/internal/net/http/common/Logger;
2: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield jdk.internal.net.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.internal.net.http.SocketTube.errorRef:Ljava/util/concurrent/atomic/AtomicReference;
4: aload 0
getstatic jdk.internal.net.http.SocketTube.IDS:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.incrementAndGet:()J
putfield jdk.internal.net.http.SocketTube.id:J
5: aload 0
aload 1
putfield jdk.internal.net.http.SocketTube.client:Ljdk/internal/net/http/HttpClientImpl;
6: aload 0
aload 2
putfield jdk.internal.net.http.SocketTube.channel:Ljava/nio/channels/SocketChannel;
7: aload 0
new jdk.internal.net.http.SocketTube$SliceBufferSource
dup
aload 3
invokespecial jdk.internal.net.http.SocketTube$SliceBufferSource.<init>:(Ljava/util/function/Supplier;)V
putfield jdk.internal.net.http.SocketTube.sliceBuffersSource:Ljdk/internal/net/http/SocketTube$SliceBufferSource;
8: aload 0
new jdk.internal.net.http.SocketTube$InternalReadPublisher
dup
aload 0
invokespecial jdk.internal.net.http.SocketTube$InternalReadPublisher.<init>:(Ljdk/internal/net/http/SocketTube;)V
putfield jdk.internal.net.http.SocketTube.readPublisher:Ljdk/internal/net/http/SocketTube$InternalReadPublisher;
9: aload 0
new jdk.internal.net.http.SocketTube$InternalWriteSubscriber
dup
aload 0
invokespecial jdk.internal.net.http.SocketTube$InternalWriteSubscriber.<init>:(Ljdk/internal/net/http/SocketTube;)V
putfield jdk.internal.net.http.SocketTube.writeSubscriber:Ljdk/internal/net/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/internal/net/http/SocketTube;
0 11 1 client Ljdk/internal/net/http/HttpClientImpl;
0 11 2 channel Ljava/nio/channels/SocketChannel;
0 11 3 buffersFactory Ljava/util/function/Supplier<Ljava/nio/ByteBuffer;>;
Signature: (Ljdk/internal/net/http/HttpClientImpl;Ljava/nio/channels/SocketChannel;Ljava/util/function/Supplier<Ljava/nio/ByteBuffer;>;)V
MethodParameters:
Name Flags
client
channel
buffersFactory
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.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;
1: astore 1
start local 1 2: aload 1
ifnull 3
aload 1
getfield jdk.internal.net.http.SocketTube$InternalReadPublisher$InternalReadSubscription.completed:Z
ifne 5
3: StackMap locals: jdk.internal.net.http.SocketTube$InternalReadPublisher$InternalReadSubscription
StackMap stack:
aload 1
ifnonnull 4
aload 0
getfield jdk.internal.net.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/internal/net/http/SocketTube;
2 6 1 subscription Ljdk/internal/net/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.internal.net.http.SocketTube.$assertionsDisabled:Z
ifne 2
aload 1
instanceof jdk.internal.net.http.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.internal.net.http.SocketTube.readPublisher:Ljdk/internal/net/http/SocketTube$InternalReadPublisher;
aload 1
invokevirtual jdk.internal.net.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/internal/net/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.internal.net.http.SocketTube.writeSubscriber:Ljdk/internal/net/http/SocketTube$InternalWriteSubscriber;
aload 1
invokevirtual jdk.internal.net.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/internal/net/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.internal.net.http.SocketTube.writeSubscriber:Ljdk/internal/net/http/SocketTube$InternalWriteSubscriber;
aload 1
invokevirtual jdk.internal.net.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/internal/net/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.internal.net.http.SocketTube.writeSubscriber:Ljdk/internal/net/http/SocketTube$InternalWriteSubscriber;
aload 1
invokevirtual jdk.internal.net.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/internal/net/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.internal.net.http.SocketTube.writeSubscriber:Ljdk/internal/net/http/SocketTube$InternalWriteSubscriber;
invokevirtual jdk.internal.net.http.SocketTube$InternalWriteSubscriber.onComplete:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/net/http/SocketTube;
void signalClosed();
descriptor: ()V
flags: (0x0000)
Code:
stack=5, locals=1, args_size=1
start local 0 0: invokestatic jdk.internal.net.http.common.Log.channel:()Z
ifeq 4
1: ldc "Connection close signalled: connection closed locally ({0})"
iconst_1
anewarray java.lang.Object
dup
iconst_0
2: aload 0
invokevirtual jdk.internal.net.http.SocketTube.channelDescr:()Ljava/lang/String;
aastore
3: invokestatic jdk.internal.net.http.common.Log.logChannel:(Ljava/lang/String;[Ljava/lang/Object;)V
4: StackMap locals:
StackMap stack:
aload 0
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;
5: new java.io.IOException
dup
ldc "connection closed locally"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
6: invokevirtual jdk.internal.net.http.SocketTube$InternalReadPublisher$InternalReadSubscription.signalError:(Ljava/lang/Throwable;)V
7: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/internal/net/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.internal.net.http.SocketTube.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()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.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;
3: astore 3
start local 3 4: aload 3
ifnonnull 5
aconst_null
goto 6
StackMap locals: java.lang.StringBuilder jdk.internal.net.http.SocketTube$InternalReadPublisher$InternalReadSubscription
StackMap stack:
5: aload 3
getfield jdk.internal.net.http.SocketTube$InternalReadPublisher$InternalReadSubscription.readEvent:Ljdk/internal/net/http/SocketTube$InternalReadPublisher$ReadEvent;
6: StackMap locals:
StackMap stack: jdk.internal.net.http.SocketTube$InternalReadPublisher$ReadEvent
astore 4
start local 4 7: aload 3
ifnonnull 8
aconst_null
goto 9
StackMap locals: jdk.internal.net.http.SocketTube$InternalReadPublisher$ReadEvent
StackMap stack:
8: aload 3
getfield jdk.internal.net.http.SocketTube$InternalReadPublisher$InternalReadSubscription.demand:Ljdk/internal/net/http/common/Demand;
StackMap locals:
StackMap stack: jdk.internal.net.http.common.Demand
9: astore 5
start local 5 10: aload 0
getfield jdk.internal.net.http.SocketTube.writeSubscriber:Ljdk/internal/net/http/SocketTube$InternalWriteSubscriber;
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.writeEvent:Ljdk/internal/net/http/SocketTube$InternalWriteSubscriber$WriteEvent;
11: astore 6
start local 6 12: aload 0
getfield jdk.internal.net.http.SocketTube.writeSubscriber:Ljdk/internal/net/http/SocketTube$InternalWriteSubscriber;
getfield jdk.internal.net.http.SocketTube$InternalWriteSubscriber.writeDemand:Ljdk/internal/net/http/common/Demand;
astore 7
start local 7 13: aload 4
ifnonnull 14
iconst_0
goto 15
StackMap locals: jdk.internal.net.http.common.Demand jdk.internal.net.http.SocketTube$InternalWriteSubscriber$WriteEvent jdk.internal.net.http.common.Demand
StackMap stack:
14: aload 4
invokevirtual jdk.internal.net.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.internal.net.http.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.internal.net.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 jdk.internal.net.http.common.Demand.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.internal.net.http.SocketTube java.lang.String java.lang.StringBuilder jdk.internal.net.http.SocketTube$InternalReadPublisher$InternalReadSubscription jdk.internal.net.http.SocketTube$InternalReadPublisher$ReadEvent jdk.internal.net.http.common.Demand jdk.internal.net.http.SocketTube$InternalWriteSubscriber$WriteEvent jdk.internal.net.http.common.Demand int long int long
StackMap stack: java.lang.StringBuilder
29: aload 3
getfield jdk.internal.net.http.SocketTube$InternalReadPublisher$InternalReadSubscription.readScheduler:Ljdk/internal/net/http/common/SequentialScheduler;
invokevirtual jdk.internal.net.http.common.SequentialScheduler.isStopped:()Z
StackMap locals: jdk.internal.net.http.SocketTube java.lang.String java.lang.StringBuilder jdk.internal.net.http.SocketTube$InternalReadPublisher$InternalReadSubscription jdk.internal.net.http.SocketTube$InternalReadPublisher$ReadEvent jdk.internal.net.http.common.Demand jdk.internal.net.http.SocketTube$InternalWriteSubscriber$WriteEvent jdk.internal.net.http.common.Demand 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.internal.net.http.SocketTube.debug:Ljdk/internal/net/http/common/Logger;
aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface jdk.internal.net.http.common.Logger.log:(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.internal.net.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/internal/net/http/SocketTube;
0 36 1 when Ljava/lang/String;
2 35 2 state Ljava/lang/StringBuilder;
4 35 3 sub Ljdk/internal/net/http/SocketTube$InternalReadPublisher$InternalReadSubscription;
7 35 4 readEvent Ljdk/internal/net/http/SocketTube$InternalReadPublisher$ReadEvent;
10 35 5 rdemand Ljdk/internal/net/http/common/Demand;
12 35 6 writeEvent Ljdk/internal/net/http/SocketTube$InternalWriteSubscriber$WriteEvent;
13 35 7 wdemand Ljdk/internal/net/http/common/Demand;
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(jdk.internal.net.http.SocketTube$BufferSource);
descriptor: (Ljdk/internal/net/http/SocketTube$BufferSource;)Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface jdk.internal.net.http.SocketTube$BufferSource.getBuffer:()Ljava/nio/ByteBuffer;
astore 2
start local 2 1: getstatic jdk.internal.net.http.SocketTube.$assertionsDisabled:Z
ifne 2
aload 2
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 2
invokevirtual java.nio.ByteBuffer.position:()I
istore 4
start local 4 3: aconst_null
astore 5
start local 5 4: goto 29
start local 3 5: StackMap locals: int int java.util.List
StackMap stack:
aload 2
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifne 7
6: goto 16
end local 3 7: StackMap locals: jdk.internal.net.http.SocketTube jdk.internal.net.http.SocketTube$BufferSource java.nio.ByteBuffer top int java.util.List
StackMap stack:
aload 0
getfield jdk.internal.net.http.SocketTube.channel:Ljava/nio/channels/SocketChannel;
aload 2
invokevirtual java.nio.channels.SocketChannel.read:(Ljava/nio/ByteBuffer;)I
dup
istore 3
start local 3 8: ifgt 5
9: goto 16
end local 3 StackMap locals:
StackMap stack: java.io.IOException
10: astore 6
start local 6 11: aload 2
invokevirtual java.nio.ByteBuffer.position:()I
iload 4
if_icmpne 14
aload 5
ifnonnull 14
12: aload 1
aload 2
invokeinterface jdk.internal.net.http.SocketTube$BufferSource.returnUnused:(Ljava/nio/ByteBuffer;)V
13: aload 6
athrow
14: StackMap locals: java.io.IOException
StackMap stack:
aload 0
getfield jdk.internal.net.http.SocketTube.errorRef:Ljava/util/concurrent/atomic/AtomicReference;
aconst_null
aload 6
invokevirtual java.util.concurrent.atomic.AtomicReference.compareAndSet:(Ljava/lang/Object;Ljava/lang/Object;)Z
pop
15: iconst_0
istore 3
end local 6 start local 3 16: StackMap locals: jdk.internal.net.http.SocketTube jdk.internal.net.http.SocketTube$BufferSource java.nio.ByteBuffer int int java.util.List
StackMap stack:
aload 2
invokevirtual java.nio.ByteBuffer.position:()I
iload 4
if_icmpne 23
17: aload 1
aload 2
invokeinterface jdk.internal.net.http.SocketTube$BufferSource.returnUnused:(Ljava/nio/ByteBuffer;)V
18: aload 5
ifnonnull 30
19: iload 3
iconst_m1
if_icmpne 20
getstatic jdk.internal.net.http.SocketTube.EOF:Ljava/util/List;
goto 21
StackMap locals:
StackMap stack:
20: getstatic jdk.internal.net.http.SocketTube.NOTHING:Ljava/util/List;
StackMap locals:
StackMap stack: java.util.List
21: astore 5
22: goto 30
23: StackMap locals:
StackMap stack:
aload 1
aload 5
aload 2
iload 4
invokeinterface jdk.internal.net.http.SocketTube$BufferSource.append:(Ljava/util/List;Ljava/nio/ByteBuffer;I)Ljava/util/List;
astore 5
24: iload 3
ifle 30
aload 5
invokeinterface java.util.List.size:()I
iconst_3
if_icmpne 26
25: goto 30
26: StackMap locals:
StackMap stack:
aload 1
invokeinterface jdk.internal.net.http.SocketTube$BufferSource.getBuffer:()Ljava/nio/ByteBuffer;
astore 2
27: aload 2
invokevirtual java.nio.ByteBuffer.position:()I
istore 4
28: getstatic jdk.internal.net.http.SocketTube.$assertionsDisabled:Z
ifne 29
aload 2
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifne 29
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
end local 3 29: StackMap locals: jdk.internal.net.http.SocketTube jdk.internal.net.http.SocketTube$BufferSource java.nio.ByteBuffer top int java.util.List
StackMap stack:
aload 2
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifne 7
30: StackMap locals:
StackMap stack:
aload 5
areturn
end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 this Ljdk/internal/net/http/SocketTube;
0 31 1 buffersSource Ljdk/internal/net/http/SocketTube$BufferSource;
1 31 2 buf Ljava/nio/ByteBuffer;
5 7 3 read I
8 10 3 read I
16 29 3 read I
3 31 4 pos I
4 31 5 list Ljava/util/List<Ljava/nio/ByteBuffer;>;
11 16 6 x Ljava/io/IOException;
Exception table:
from to target type
5 9 10 Class java.io.IOException
Exceptions:
throws java.io.IOException
Signature: (Ljdk/internal/net/http/SocketTube$BufferSource;)Ljava/util/List<Ljava/nio/ByteBuffer;>;
MethodParameters:
Name Flags
buffersSource
private static <T> java.util.List<T> listOf(java.util.List<T>, T);
descriptor: (Ljava/util/List;Ljava/lang/Object;)Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
ifnonnull 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: aload 0
invokeinterface java.util.List.size:()I
StackMap locals:
StackMap stack: int
2: istore 2
start local 2 3: iload 2
tableswitch { // 0 - 2
0: 4
1: 5
2: 6
default: 7
}
4: StackMap locals: int
StackMap stack:
aload 1
invokestatic java.util.List.of:(Ljava/lang/Object;)Ljava/util/List;
areturn
5: StackMap locals:
StackMap stack:
aload 0
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
aload 1
invokestatic java.util.List.of:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/List;
areturn
6: StackMap locals:
StackMap stack:
aload 0
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
aload 0
iconst_1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
aload 1
invokestatic java.util.List.of:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/List;
areturn
7: StackMap locals:
StackMap stack:
aload 0
instanceof java.util.ArrayList
ifeq 8
aload 0
goto 9
StackMap locals:
StackMap stack:
8: new java.util.ArrayList
dup
aload 0
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
StackMap locals:
StackMap stack: java.util.List
9: astore 3
start local 3 10: aload 3
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
11: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 list Ljava/util/List<TT;>;
0 12 1 item TT;
3 12 2 size I
10 12 3 res Ljava/util/List<TT;>;
Signature: <T:Ljava/lang/Object;>(Ljava/util/List<TT;>;TT;)Ljava/util/List<TT;>;
MethodParameters:
Name Flags
list
item
private long writeAvailable(java.util.List<java.nio.ByteBuffer>);
descriptor: (Ljava/util/List;)J
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=9, args_size=2
start local 0 start local 1 0: aload 1
getstatic jdk.internal.net.http.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.internal.net.http.common.Utils.remaining:([Ljava/nio/ByteBuffer;)J
lstore 3
start local 3 2: lconst_0
lstore 5
start local 5 3: goto 13
4: StackMap locals: java.nio.ByteBuffer[] long long
StackMap stack:
aload 0
getfield jdk.internal.net.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: getstatic jdk.internal.net.http.SocketTube.$assertionsDisabled:Z
ifne 6
lload 7
lconst_0
lcmp
ifge 6
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 7
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
6: StackMap locals: long
StackMap stack:
lload 7
lconst_0
lcmp
ifne 8
7: goto 14
8: StackMap locals:
StackMap stack:
lload 5
lload 7
ladd
lstore 5
end local 7 9: goto 13
StackMap locals: jdk.internal.net.http.SocketTube java.util.List java.nio.ByteBuffer[] long long
StackMap stack: java.io.IOException
10: astore 7
start local 7 11: lload 5
lconst_0
lcmp
ifne 14
12: aload 7
athrow
end local 7 13: StackMap locals:
StackMap stack:
lload 3
lload 5
lcmp
ifgt 4
14: 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 15 0 this Ljdk/internal/net/http/SocketTube;
0 15 1 bytes Ljava/util/List<Ljava/nio/ByteBuffer;>;
1 15 2 srcs [Ljava/nio/ByteBuffer;
2 15 3 remaining J
3 15 5 written J
5 9 7 w J
11 13 7 x Ljava/io/IOException;
Exception table:
from to target type
4 7 10 Class java.io.IOException
8 9 10 Class java.io.IOException
Exceptions:
throws java.io.IOException
Signature: (Ljava/util/List<Ljava/nio/ByteBuffer;>;)J
MethodParameters:
Name Flags
bytes
private void resumeEvent(jdk.internal.net.http.SocketTube$SocketFlowEvent, java.util.function.Consumer<java.lang.Throwable>);
descriptor: (Ljdk/internal/net/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.internal.net.http.SocketTube.lock:Ljava/lang/Object;
dup
astore 4
monitorenter
1: aload 1
invokevirtual jdk.internal.net.http.SocketTube$SocketFlowEvent.registered:()Z
ifeq 2
iconst_0
goto 3
StackMap locals: jdk.internal.net.http.SocketTube jdk.internal.net.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.internal.net.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.internal.net.http.SocketTube jdk.internal.net.http.SocketTube$SocketFlowEvent java.util.function.Consumer int
StackMap stack:
iload 3
ifeq 12
10: aload 0
getfield jdk.internal.net.http.SocketTube.client:Ljdk/internal/net/http/HttpClientImpl;
aload 1
invokevirtual jdk.internal.net.http.HttpClientImpl.registerEvent:(Ljdk/internal/net/http/AsyncEvent;)V
11: goto 16
12: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.SocketTube.client:Ljdk/internal/net/http/HttpClientImpl;
aload 1
invokevirtual jdk.internal.net.http.HttpClientImpl.eventUpdated:(Ljdk/internal/net/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/internal/net/http/SocketTube;
0 17 1 event Ljdk/internal/net/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/internal/net/http/SocketTube$SocketFlowEvent;Ljava/util/function/Consumer<Ljava/lang/Throwable;>;)V
MethodParameters:
Name Flags
event
errorSignaler
private void pauseEvent(jdk.internal.net.http.SocketTube$SocketFlowEvent, java.util.function.Consumer<java.lang.Throwable>);
descriptor: (Ljdk/internal/net/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.internal.net.http.SocketTube.lock:Ljava/lang/Object;
dup
astore 3
monitorenter
1: aload 1
invokevirtual jdk.internal.net.http.SocketTube$SocketFlowEvent.pause:()V
2: aload 3
monitorexit
3: goto 6
StackMap locals: jdk.internal.net.http.SocketTube jdk.internal.net.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.internal.net.http.SocketTube.client:Ljdk/internal/net/http/HttpClientImpl;
aload 1
invokevirtual jdk.internal.net.http.HttpClientImpl.eventUpdated:(Ljdk/internal/net/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/internal/net/http/SocketTube;
0 11 1 event Ljdk/internal/net/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/internal/net/http/SocketTube$SocketFlowEvent;Ljava/util/function/Consumer<Ljava/lang/Throwable;>;)V
MethodParameters:
Name Flags
event
errorSignaler
public void connectFlows(jdk.internal.net.http.common.FlowTube$TubePublisher, jdk.internal.net.http.common.FlowTube$TubeSubscriber);
descriptor: (Ljdk/internal/net/http/common/FlowTube$TubePublisher;Ljdk/internal/net/http/common/FlowTube$TubeSubscriber;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
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.debug:Ljdk/internal/net/http/common/Logger;
ldc "connecting flows"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
1: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual jdk.internal.net.http.SocketTube.subscribe:(Ljava/util/concurrent/Flow$Subscriber;)V
2: aload 1
aload 0
invokeinterface jdk.internal.net.http.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/internal/net/http/SocketTube;
0 4 1 writePublisher Ljdk/internal/net/http/common/FlowTube$TubePublisher;
0 4 2 readSubscriber Ljdk/internal/net/http/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.internal.net.http.SocketTube.dbgString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/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.internal.net.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/internal/net/http/SocketTube;
final java.lang.String channelDescr();
descriptor: ()Ljava/lang/String;
flags: (0x0010) ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.SocketTube.channel:Ljava/nio/channels/SocketChannel;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/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.internal.net.http.SocketTube.onNext:(Ljava/util/List;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "SocketTube.java"
NestMembers:
jdk.internal.net.http.SocketTube$BufferSource jdk.internal.net.http.SocketTube$InternalReadPublisher jdk.internal.net.http.SocketTube$InternalReadPublisher$InternalReadSubscription jdk.internal.net.http.SocketTube$InternalReadPublisher$ReadEvent jdk.internal.net.http.SocketTube$InternalReadPublisher$ReadSubscription jdk.internal.net.http.SocketTube$InternalWriteSubscriber jdk.internal.net.http.SocketTube$InternalWriteSubscriber$WriteEvent jdk.internal.net.http.SocketTube$InternalWriteSubscriber$WriteSubscription jdk.internal.net.http.SocketTube$SSLDirectBufferSource jdk.internal.net.http.SocketTube$SliceBufferSource jdk.internal.net.http.SocketTube$SocketFlowEvent jdk.internal.net.http.SocketTube$SocketFlowTask
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
public abstract BufferSource = jdk.internal.net.http.SocketTube$BufferSource of jdk.internal.net.http.SocketTube
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
final ReadEvent = jdk.internal.net.http.SocketTube$InternalReadPublisher$ReadEvent 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
private final SSLDirectBufferSource = jdk.internal.net.http.SocketTube$SSLDirectBufferSource of jdk.internal.net.http.SocketTube
private final SliceBufferSource = jdk.internal.net.http.SocketTube$SliceBufferSource of jdk.internal.net.http.SocketTube
private abstract SocketFlowEvent = jdk.internal.net.http.SocketTube$SocketFlowEvent of jdk.internal.net.http.SocketTube
private SocketFlowTask = jdk.internal.net.http.SocketTube$SocketFlowTask of jdk.internal.net.http.SocketTube
public abstract TubePublisher = jdk.internal.net.http.common.FlowTube$TubePublisher of jdk.internal.net.http.common.FlowTube
public abstract TubeSubscriber = jdk.internal.net.http.common.FlowTube$TubeSubscriber of jdk.internal.net.http.common.FlowTube