public class jdk.internal.net.http.RawChannelTube implements jdk.internal.net.http.websocket.RawChannel
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.internal.net.http.RawChannelTube
super_class: java.lang.Object
{
final jdk.internal.net.http.HttpConnection connection;
descriptor: Ljdk/internal/net/http/HttpConnection;
flags: (0x0010) ACC_FINAL
final jdk.internal.net.http.common.FlowTube tube;
descriptor: Ljdk/internal/net/http/common/FlowTube;
flags: (0x0010) ACC_FINAL
final jdk.internal.net.http.RawChannelTube$WritePublisher writePublisher;
descriptor: Ljdk/internal/net/http/RawChannelTube$WritePublisher;
flags: (0x0010) ACC_FINAL
final jdk.internal.net.http.RawChannelTube$ReadSubscriber readSubscriber;
descriptor: Ljdk/internal/net/http/RawChannelTube$ReadSubscriber;
flags: (0x0010) ACC_FINAL
final java.util.function.Supplier<java.nio.ByteBuffer> initial;
descriptor: Ljava/util/function/Supplier;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/function/Supplier<Ljava/nio/ByteBuffer;>;
final java.util.concurrent.atomic.AtomicBoolean inited;
descriptor: Ljava/util/concurrent/atomic/AtomicBoolean;
flags: (0x0010) ACC_FINAL
final java.util.concurrent.atomic.AtomicBoolean outputClosed;
descriptor: Ljava/util/concurrent/atomic/AtomicBoolean;
flags: (0x0010) ACC_FINAL
final java.util.concurrent.atomic.AtomicBoolean inputClosed;
descriptor: Ljava/util/concurrent/atomic/AtomicBoolean;
flags: (0x0010) ACC_FINAL
final java.util.concurrent.atomic.AtomicBoolean closed;
descriptor: Ljava/util/concurrent/atomic/AtomicBoolean;
flags: (0x0010) ACC_FINAL
final java.lang.String dbgTag;
descriptor: Ljava/lang/String;
flags: (0x0010) ACC_FINAL
final jdk.internal.net.http.common.Logger debug;
descriptor: Ljdk/internal/net/http/common/Logger;
flags: (0x0010) ACC_FINAL
private static final java.lang.ref.Cleaner cleaner;
descriptor: Ljava/lang/ref/Cleaner;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
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/RawChannelTube;
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.RawChannelTube.$assertionsDisabled:Z
3: getstatic jdk.internal.net.http.common.Utils.ASSERTIONSENABLED:Z
ifeq 4
getstatic jdk.internal.net.http.common.Utils.DEBUG_WS:Z
ifeq 4
invokestatic java.lang.ref.Cleaner.create:()Ljava/lang/ref/Cleaner;
goto 5
StackMap locals:
StackMap stack:
4: aconst_null
5: StackMap locals:
StackMap stack: java.lang.ref.Cleaner
putstatic jdk.internal.net.http.RawChannelTube.cleaner:Ljava/lang/ref/Cleaner;
6: return
LocalVariableTable:
Start End Slot Name Signature
void <init>(jdk.internal.net.http.HttpConnection, java.util.function.Supplier<java.nio.ByteBuffer>);
descriptor: (Ljdk/internal/net/http/HttpConnection;Ljava/util/function/Supplier;)V
flags: (0x0000)
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.atomic.AtomicBoolean
dup
invokespecial java.util.concurrent.atomic.AtomicBoolean.<init>:()V
putfield jdk.internal.net.http.RawChannelTube.inited:Ljava/util/concurrent/atomic/AtomicBoolean;
2: aload 0
new java.util.concurrent.atomic.AtomicBoolean
dup
invokespecial java.util.concurrent.atomic.AtomicBoolean.<init>:()V
putfield jdk.internal.net.http.RawChannelTube.outputClosed:Ljava/util/concurrent/atomic/AtomicBoolean;
3: aload 0
new java.util.concurrent.atomic.AtomicBoolean
dup
invokespecial java.util.concurrent.atomic.AtomicBoolean.<init>:()V
putfield jdk.internal.net.http.RawChannelTube.inputClosed:Ljava/util/concurrent/atomic/AtomicBoolean;
4: aload 0
new java.util.concurrent.atomic.AtomicBoolean
dup
invokespecial java.util.concurrent.atomic.AtomicBoolean.<init>:()V
putfield jdk.internal.net.http.RawChannelTube.closed:Ljava/util/concurrent/atomic/AtomicBoolean;
5: aload 0
aload 1
putfield jdk.internal.net.http.RawChannelTube.connection:Ljdk/internal/net/http/HttpConnection;
6: aload 0
aload 1
invokevirtual jdk.internal.net.http.HttpConnection.getConnectionFlow:()Ljdk/internal/net/http/common/FlowTube;
putfield jdk.internal.net.http.RawChannelTube.tube:Ljdk/internal/net/http/common/FlowTube;
7: aload 0
aload 2
putfield jdk.internal.net.http.RawChannelTube.initial:Ljava/util/function/Supplier;
8: aload 0
new jdk.internal.net.http.RawChannelTube$WritePublisher
dup
aload 0
invokespecial jdk.internal.net.http.RawChannelTube$WritePublisher.<init>:(Ljdk/internal/net/http/RawChannelTube;)V
putfield jdk.internal.net.http.RawChannelTube.writePublisher:Ljdk/internal/net/http/RawChannelTube$WritePublisher;
9: aload 0
new jdk.internal.net.http.RawChannelTube$ReadSubscriber
dup
aload 0
invokespecial jdk.internal.net.http.RawChannelTube$ReadSubscriber.<init>:(Ljdk/internal/net/http/RawChannelTube;)V
putfield jdk.internal.net.http.RawChannelTube.readSubscriber:Ljdk/internal/net/http/RawChannelTube$ReadSubscriber;
10: aload 0
new java.lang.StringBuilder
dup
ldc "[WebSocket] RawChannelTube("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield jdk.internal.net.http.RawChannelTube.tube:Ljdk/internal/net/http/common/FlowTube;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield jdk.internal.net.http.RawChannelTube.dbgTag:Ljava/lang/String;
11: aload 0
aload 0
getfield jdk.internal.net.http.RawChannelTube.dbgTag:Ljava/lang/String;
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic get(Ljava/lang/String;)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;
java/lang/String.toString()Ljava/lang/String; (5)
()Ljava/lang/String;
getstatic jdk.internal.net.http.common.Utils.DEBUG_WS:Z
invokestatic jdk.internal.net.http.common.Utils.getWebSocketLogger:(Ljava/util/function/Supplier;Z)Ljdk/internal/net/http/common/Logger;
putfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
12: aload 1
invokevirtual jdk.internal.net.http.HttpConnection.client:()Ljdk/internal/net/http/HttpClientImpl;
invokevirtual jdk.internal.net.http.HttpClientImpl.webSocketOpen:()J
pop2
13: aload 0
invokevirtual jdk.internal.net.http.RawChannelTube.connectFlows:()V
14: getstatic jdk.internal.net.http.common.Utils.ASSERTIONSENABLED:Z
ifeq 16
getstatic jdk.internal.net.http.common.Utils.DEBUG_WS:Z
ifeq 16
15: getstatic jdk.internal.net.http.RawChannelTube.cleaner:Ljava/lang/ref/Cleaner;
aload 0
new jdk.internal.net.http.RawChannelTube$CleanupChecker
dup
aload 0
getfield jdk.internal.net.http.RawChannelTube.closed:Ljava/util/concurrent/atomic/AtomicBoolean;
aload 0
getfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
invokespecial jdk.internal.net.http.RawChannelTube$CleanupChecker.<init>:(Ljava/util/concurrent/atomic/AtomicBoolean;Ljava/lang/System$Logger;)V
invokevirtual java.lang.ref.Cleaner.register:(Ljava/lang/Object;Ljava/lang/Runnable;)Ljava/lang/ref/Cleaner$Cleanable;
pop
16: StackMap locals: jdk.internal.net.http.RawChannelTube jdk.internal.net.http.HttpConnection java.util.function.Supplier
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/RawChannelTube;
0 17 1 connection Ljdk/internal/net/http/HttpConnection;
0 17 2 initial Ljava/util/function/Supplier<Ljava/nio/ByteBuffer;>;
Signature: (Ljdk/internal/net/http/HttpConnection;Ljava/util/function/Supplier<Ljava/nio/ByteBuffer;>;)V
MethodParameters:
Name Flags
connection
initial
private void connectFlows();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.RawChannelTube.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.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
ldc "connectFlows"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
1: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.RawChannelTube.tube:Ljdk/internal/net/http/common/FlowTube;
aload 0
getfield jdk.internal.net.http.RawChannelTube.writePublisher:Ljdk/internal/net/http/RawChannelTube$WritePublisher;
aload 0
getfield jdk.internal.net.http.RawChannelTube.readSubscriber:Ljdk/internal/net/http/RawChannelTube$ReadSubscriber;
invokeinterface jdk.internal.net.http.common.FlowTube.connectFlows:(Ljdk/internal/net/http/common/FlowTube$TubePublisher;Ljdk/internal/net/http/common/FlowTube$TubeSubscriber;)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/net/http/RawChannelTube;
public void registerEvent(jdk.internal.net.http.websocket.RawChannel$RawEvent);
descriptor: (Ljdk/internal/net/http/websocket/RawChannel$RawEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface jdk.internal.net.http.websocket.RawChannel$RawEvent.interestOps:()I
istore 2
start local 2 1: iload 2
iconst_4
iand
ifeq 12
2: aload 0
getfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 3
aload 0
getfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
ldc "register write event"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
3: StackMap locals: int
StackMap stack:
aload 0
getfield jdk.internal.net.http.RawChannelTube.outputClosed:Ljava/util/concurrent/atomic/AtomicBoolean;
invokevirtual java.util.concurrent.atomic.AtomicBoolean.get:()Z
ifeq 4
new java.io.IOException
dup
ldc "closed output"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.RawChannelTube.writePublisher:Ljdk/internal/net/http/RawChannelTube$WritePublisher;
getfield jdk.internal.net.http.RawChannelTube$WritePublisher.events:Ljava/util/concurrent/ConcurrentLinkedQueue;
aload 1
invokevirtual java.util.concurrent.ConcurrentLinkedQueue.add:(Ljava/lang/Object;)Z
pop
5: aload 0
getfield jdk.internal.net.http.RawChannelTube.writePublisher:Ljdk/internal/net/http/RawChannelTube$WritePublisher;
getfield jdk.internal.net.http.RawChannelTube$WritePublisher.writeSubscription:Ljdk/internal/net/http/RawChannelTube$WriteSubscription;
astore 3
start local 3 6: aload 3
ifnull 12
7: goto 11
8: StackMap locals: jdk.internal.net.http.RawChannelTube$WriteSubscription
StackMap stack:
aload 0
getfield jdk.internal.net.http.RawChannelTube.writePublisher:Ljdk/internal/net/http/RawChannelTube$WritePublisher;
getfield jdk.internal.net.http.RawChannelTube$WritePublisher.events:Ljava/util/concurrent/ConcurrentLinkedQueue;
invokevirtual java.util.concurrent.ConcurrentLinkedQueue.poll:()Ljava/lang/Object;
checkcast jdk.internal.net.http.websocket.RawChannel$RawEvent
astore 1
9: aload 1
ifnonnull 10
goto 12
10: StackMap locals:
StackMap stack:
aload 1
invokeinterface jdk.internal.net.http.websocket.RawChannel$RawEvent.handle:()V
11: StackMap locals:
StackMap stack:
aload 3
getfield jdk.internal.net.http.RawChannelTube$WriteSubscription.demand:Ljdk/internal/net/http/common/Demand;
invokevirtual jdk.internal.net.http.common.Demand.isFulfilled:()Z
ifeq 8
end local 3 12: StackMap locals:
StackMap stack:
iload 2
iconst_1
iand
ifeq 35
13: aload 0
getfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 14
aload 0
getfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
ldc "register read event"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
14: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.RawChannelTube.inputClosed:Ljava/util/concurrent/atomic/AtomicBoolean;
invokevirtual java.util.concurrent.atomic.AtomicBoolean.get:()Z
ifeq 15
new java.io.IOException
dup
ldc "closed input"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
15: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.RawChannelTube.readSubscriber:Ljdk/internal/net/http/RawChannelTube$ReadSubscriber;
getfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.events:Ljava/util/concurrent/ConcurrentLinkedQueue;
aload 1
invokevirtual java.util.concurrent.ConcurrentLinkedQueue.add:(Ljava/lang/Object;)Z
pop
16: aload 0
getfield jdk.internal.net.http.RawChannelTube.readSubscriber:Ljdk/internal/net/http/RawChannelTube$ReadSubscriber;
invokevirtual jdk.internal.net.http.RawChannelTube$ReadSubscriber.checkEvents:()V
17: aload 0
getfield jdk.internal.net.http.RawChannelTube.readSubscriber:Ljdk/internal/net/http/RawChannelTube$ReadSubscriber;
getfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.buffers:Ljava/util/concurrent/ConcurrentLinkedQueue;
invokevirtual java.util.concurrent.ConcurrentLinkedQueue.isEmpty:()Z
ifeq 35
18: aload 0
getfield jdk.internal.net.http.RawChannelTube.readSubscriber:Ljdk/internal/net/http/RawChannelTube$ReadSubscriber;
getfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.events:Ljava/util/concurrent/ConcurrentLinkedQueue;
invokevirtual java.util.concurrent.ConcurrentLinkedQueue.isEmpty:()Z
ifne 35
19: aload 0
getfield jdk.internal.net.http.RawChannelTube.readSubscriber:Ljdk/internal/net/http/RawChannelTube$ReadSubscriber;
getfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.readSubscription:Ljava/util/concurrent/Flow$Subscription;
20: astore 3
start local 3 21: aload 3
ifnonnull 32
22: aload 0
getfield jdk.internal.net.http.RawChannelTube.readSubscriber:Ljdk/internal/net/http/RawChannelTube$ReadSubscriber;
dup
astore 4
monitorenter
23: aload 0
getfield jdk.internal.net.http.RawChannelTube.readSubscriber:Ljdk/internal/net/http/RawChannelTube$ReadSubscriber;
getfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.readSubscription:Ljava/util/concurrent/Flow$Subscription;
astore 3
24: aload 3
ifnonnull 28
25: aload 0
getfield jdk.internal.net.http.RawChannelTube.readSubscriber:Ljdk/internal/net/http/RawChannelTube$ReadSubscriber;
lconst_1
putfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.initialRequest:J
26: aload 4
monitorexit
27: return
28: StackMap locals: java.util.concurrent.Flow$Subscription jdk.internal.net.http.RawChannelTube$ReadSubscriber
StackMap stack:
aload 4
monitorexit
29: goto 32
StackMap locals:
StackMap stack: java.lang.Throwable
30: aload 4
monitorexit
31: athrow
32: StackMap locals:
StackMap stack:
getstatic jdk.internal.net.http.RawChannelTube.$assertionsDisabled:Z
ifne 33
aload 3
ifnonnull 33
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
33: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 34
aload 0
getfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
ldc "readSubscription: requesting 1"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
34: StackMap locals:
StackMap stack:
aload 3
lconst_1
invokeinterface java.util.concurrent.Flow$Subscription.request:(J)V
end local 3 35: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 36 0 this Ljdk/internal/net/http/RawChannelTube;
0 36 1 event Ljdk/internal/net/http/websocket/RawChannel$RawEvent;
1 36 2 interestOps I
6 12 3 writeSubscription Ljdk/internal/net/http/RawChannelTube$WriteSubscription;
21 35 3 readSubscription Ljava/util/concurrent/Flow$Subscription;
Exception table:
from to target type
23 27 30 any
28 29 30 any
30 31 30 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
event
public java.nio.ByteBuffer initialByteBuffer();
descriptor: ()Ljava/nio/ByteBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.RawChannelTube.inited:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_0
iconst_1
invokevirtual java.util.concurrent.atomic.AtomicBoolean.compareAndSet:(ZZ)Z
ifeq 2
1: aload 0
getfield jdk.internal.net.http.RawChannelTube.initial:Ljava/util/function/Supplier;
invokeinterface java.util.function.Supplier.get:()Ljava/lang/Object;
checkcast java.nio.ByteBuffer
areturn
2: StackMap locals:
StackMap stack:
new java.lang.IllegalStateException
dup
ldc "initial buffer already drained"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/net/http/RawChannelTube;
Exceptions:
throws java.lang.IllegalStateException
public java.nio.ByteBuffer read();
descriptor: ()Ljava/nio/ByteBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.RawChannelTube.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.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
ldc "read"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
1: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.RawChannelTube.readSubscriber:Ljdk/internal/net/http/RawChannelTube$ReadSubscriber;
getfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.readSubscription:Ljava/util/concurrent/Flow$Subscription;
astore 1
start local 1 2: aload 1
ifnonnull 3
getstatic jdk.internal.net.http.common.Utils.EMPTY_BYTEBUFFER:Ljava/nio/ByteBuffer;
areturn
3: StackMap locals: java.util.concurrent.Flow$Subscription
StackMap stack:
aload 0
getfield jdk.internal.net.http.RawChannelTube.readSubscriber:Ljdk/internal/net/http/RawChannelTube$ReadSubscriber;
getfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.buffers:Ljava/util/concurrent/ConcurrentLinkedQueue;
invokevirtual java.util.concurrent.ConcurrentLinkedQueue.poll:()Ljava/lang/Object;
checkcast java.nio.ByteBuffer
astore 2
start local 2 4: aload 2
ifnull 7
5: aload 0
getfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 6
aload 0
getfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
new java.lang.StringBuilder
dup
ldc "read: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.nio.ByteBuffer.remaining:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
6: StackMap locals: java.nio.ByteBuffer
StackMap stack:
aload 2
areturn
7: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.RawChannelTube.readSubscriber:Ljdk/internal/net/http/RawChannelTube$ReadSubscriber;
getfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.errorRef:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast java.lang.Throwable
astore 3
start local 3 8: aload 3
ifnull 9
aload 3
invokestatic jdk.internal.net.http.common.Utils.getIOException:(Ljava/lang/Throwable;)Ljava/io/IOException;
astore 3
9: StackMap locals: java.lang.Throwable
StackMap stack:
aload 3
instanceof java.io.EOFException
ifeq 13
10: aload 0
getfield jdk.internal.net.http.RawChannelTube.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.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
ldc "read: EOFException"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
11: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.internal.net.http.RawChannelTube.shutdownInput:()V
12: aconst_null
areturn
13: StackMap locals:
StackMap stack:
aload 3
ifnull 19
14: aload 0
getfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 15
aload 0
getfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
new java.lang.StringBuilder
dup
ldc "read: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
15: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.RawChannelTube.closed:Ljava/util/concurrent/atomic/AtomicBoolean;
invokevirtual java.util.concurrent.atomic.AtomicBoolean.get:()Z
ifeq 17
16: aconst_null
areturn
17: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.internal.net.http.RawChannelTube.shutdownInput:()V
18: aload 3
invokestatic jdk.internal.net.http.common.Utils.getIOException:(Ljava/lang/Throwable;)Ljava/io/IOException;
athrow
19: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.RawChannelTube.readSubscriber:Ljdk/internal/net/http/RawChannelTube$ReadSubscriber;
getfield jdk.internal.net.http.RawChannelTube$ReadSubscriber.completed:Z
ifeq 23
20: aload 0
getfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 21
aload 0
getfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
ldc "read: EOF"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
21: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.internal.net.http.RawChannelTube.shutdownInput:()V
22: aconst_null
areturn
23: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.RawChannelTube.inputClosed:Ljava/util/concurrent/atomic/AtomicBoolean;
invokevirtual java.util.concurrent.atomic.AtomicBoolean.get:()Z
ifeq 26
24: aload 0
getfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 25
aload 0
getfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
ldc "read: CLOSED"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
25: StackMap locals:
StackMap stack:
new java.io.IOException
dup
ldc "closed output"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
26: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 27
aload 0
getfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
ldc "read: nothing to read"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
27: StackMap locals:
StackMap stack:
getstatic jdk.internal.net.http.common.Utils.EMPTY_BYTEBUFFER:Ljava/nio/ByteBuffer;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 this Ljdk/internal/net/http/RawChannelTube;
2 28 1 readSubscription Ljava/util/concurrent/Flow$Subscription;
4 28 2 buffer Ljava/nio/ByteBuffer;
8 28 3 error Ljava/lang/Throwable;
Exceptions:
throws java.io.IOException
public long write(java.nio.ByteBuffer[], int, int);
descriptor: ([Ljava/nio/ByteBuffer;II)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield jdk.internal.net.http.RawChannelTube.outputClosed:Ljava/util/concurrent/atomic/AtomicBoolean;
invokevirtual java.util.concurrent.atomic.AtomicBoolean.get:()Z
ifeq 3
1: aload 0
getfield jdk.internal.net.http.RawChannelTube.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.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
ldc "write: CLOSED"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
2: StackMap locals:
StackMap stack:
new java.io.IOException
dup
ldc "closed output"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.RawChannelTube.writePublisher:Ljdk/internal/net/http/RawChannelTube$WritePublisher;
getfield jdk.internal.net.http.RawChannelTube$WritePublisher.writeSubscription:Ljdk/internal/net/http/RawChannelTube$WriteSubscription;
astore 4
start local 4 4: aload 4
ifnonnull 7
5: aload 0
getfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 6
aload 0
getfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
ldc "write: unsubscribed: 0"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
6: StackMap locals: jdk.internal.net.http.RawChannelTube$WriteSubscription
StackMap stack:
lconst_0
lreturn
7: StackMap locals:
StackMap stack:
aload 4
getfield jdk.internal.net.http.RawChannelTube$WriteSubscription.cancelled:Z
ifeq 11
8: aload 0
getfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 9
aload 0
getfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
ldc "write: CANCELLED"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
9: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.internal.net.http.RawChannelTube.shutdownOutput:()V
10: new java.io.IOException
dup
ldc "closed output"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals:
StackMap stack:
aload 4
getfield jdk.internal.net.http.RawChannelTube$WriteSubscription.demand:Ljdk/internal/net/http/common/Demand;
invokevirtual jdk.internal.net.http.common.Demand.tryDecrement:()Z
ifeq 17
12: aload 1
iload 2
iload 3
invokestatic jdk.internal.net.http.RawChannelTube.copy:([Ljava/nio/ByteBuffer;II)Ljava/util/List;
astore 5
start local 5 13: aload 5
invokestatic jdk.internal.net.http.common.Utils.remaining:(Ljava/util/List;)J
lstore 6
start local 6 14: aload 0
getfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 15
aload 0
getfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
ldc "write: writing %d"
iconst_1
anewarray java.lang.Object
dup
iconst_0
lload 6
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
15: StackMap locals: java.util.List long
StackMap stack:
aload 4
getfield jdk.internal.net.http.RawChannelTube$WriteSubscription.subscriber:Ljava/util/concurrent/Flow$Subscriber;
aload 5
invokeinterface java.util.concurrent.Flow$Subscriber.onNext:(Ljava/lang/Object;)V
16: lload 6
lreturn
end local 6 end local 5 17: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 18
aload 0
getfield jdk.internal.net.http.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
ldc "write: no demand: 0"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
18: StackMap locals:
StackMap stack:
lconst_0
lreturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Ljdk/internal/net/http/RawChannelTube;
0 19 1 srcs [Ljava/nio/ByteBuffer;
0 19 2 offset I
0 19 3 length I
4 19 4 writeSubscription Ljdk/internal/net/http/RawChannelTube$WriteSubscription;
13 17 5 buffers Ljava/util/List<Ljava/nio/ByteBuffer;>;
14 17 6 res J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
srcs
offset
length
public void shutdownInput();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.RawChannelTube.inputClosed:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_0
iconst_1
invokevirtual java.util.concurrent.atomic.AtomicBoolean.compareAndSet:(ZZ)Z
ifeq 2
1: aload 0
getfield jdk.internal.net.http.RawChannelTube.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.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
ldc "shutdownInput"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/net/http/RawChannelTube;
public void shutdownOutput();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.RawChannelTube.outputClosed:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_0
iconst_1
invokevirtual java.util.concurrent.atomic.AtomicBoolean.compareAndSet:(ZZ)Z
ifeq 2
1: aload 0
getfield jdk.internal.net.http.RawChannelTube.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.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
ldc "shutdownOutput"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/net/http/RawChannelTube;
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.RawChannelTube.closed:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_0
iconst_1
invokevirtual java.util.concurrent.atomic.AtomicBoolean.compareAndSet:(ZZ)Z
ifeq 4
1: aload 0
getfield jdk.internal.net.http.RawChannelTube.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.RawChannelTube.debug:Ljdk/internal/net/http/common/Logger;
ldc "close"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.RawChannelTube.connection:Ljdk/internal/net/http/HttpConnection;
invokevirtual jdk.internal.net.http.HttpConnection.client:()Ljdk/internal/net/http/HttpClientImpl;
invokevirtual jdk.internal.net.http.HttpClientImpl.webSocketClose:()J
pop2
3: aload 0
getfield jdk.internal.net.http.RawChannelTube.connection:Ljdk/internal/net/http/HttpConnection;
invokevirtual jdk.internal.net.http.HttpConnection.close:()V
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/net/http/RawChannelTube;
private static java.util.List<java.nio.ByteBuffer> copy(java.nio.ByteBuffer[], int, int);
descriptor: ([Ljava/nio/ByteBuffer;II)Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: iload 2
aload 0
arraylength
iload 1
isub
invokestatic java.lang.Math.min:(II)I
istore 3
start local 3 1: iload 3
ifgt 2
getstatic jdk.internal.net.http.common.Utils.EMPTY_BB_LIST:Ljava/util/List;
areturn
2: StackMap locals: int
StackMap stack:
iload 3
iconst_1
if_icmpne 3
aload 0
iload 1
aaload
invokestatic jdk.internal.net.http.common.Utils.copy:(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
invokestatic java.util.List.of:(Ljava/lang/Object;)Ljava/util/List;
areturn
3: StackMap locals:
StackMap stack:
iload 3
iconst_2
if_icmpne 4
aload 0
iload 1
aaload
invokestatic jdk.internal.net.http.common.Utils.copy:(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
aload 0
iload 1
iconst_1
iadd
aaload
invokestatic jdk.internal.net.http.common.Utils.copy:(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
invokestatic java.util.List.of:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/List;
areturn
4: StackMap locals:
StackMap stack:
new java.util.ArrayList
dup
iload 3
invokespecial java.util.ArrayList.<init>:(I)V
astore 4
start local 4 5: iconst_0
istore 5
start local 5 6: goto 9
7: StackMap locals: java.util.List int
StackMap stack:
aload 4
aload 0
iload 1
iload 5
iadd
aaload
invokestatic jdk.internal.net.http.common.Utils.copy:(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
8: iinc 5 1
StackMap locals:
StackMap stack:
9: iload 5
iload 3
if_icmplt 7
end local 5 10: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 src [Ljava/nio/ByteBuffer;
0 11 1 offset I
0 11 2 len I
1 11 3 count I
5 11 4 list Ljava/util/List<Ljava/nio/ByteBuffer;>;
6 10 5 i I
Signature: ([Ljava/nio/ByteBuffer;II)Ljava/util/List<Ljava/nio/ByteBuffer;>;
MethodParameters:
Name Flags
src
offset
len
}
SourceFile: "RawChannelTube.java"
NestMembers:
jdk.internal.net.http.RawChannelTube$CleanupChecker jdk.internal.net.http.RawChannelTube$ReadSubscriber jdk.internal.net.http.RawChannelTube$WritePublisher jdk.internal.net.http.RawChannelTube$WriteSubscription
InnerClasses:
public abstract Logger = java.lang.System$Logger of java.lang.System
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract Cleanable = java.lang.ref.Cleaner$Cleanable of java.lang.ref.Cleaner
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 CleanupChecker = jdk.internal.net.http.RawChannelTube$CleanupChecker of jdk.internal.net.http.RawChannelTube
ReadSubscriber = jdk.internal.net.http.RawChannelTube$ReadSubscriber of jdk.internal.net.http.RawChannelTube
WritePublisher = jdk.internal.net.http.RawChannelTube$WritePublisher of jdk.internal.net.http.RawChannelTube
WriteSubscription = jdk.internal.net.http.RawChannelTube$WriteSubscription of jdk.internal.net.http.RawChannelTube
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
public abstract RawEvent = jdk.internal.net.http.websocket.RawChannel$RawEvent of jdk.internal.net.http.websocket.RawChannel