final class jdk.internal.net.http.HttpConnection$PlainHttpPublisher implements jdk.internal.net.http.HttpConnection$HttpPublisher
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.internal.net.http.HttpConnection$PlainHttpPublisher
super_class: java.lang.Object
{
final java.lang.Object reading;
descriptor: Ljava/lang/Object;
flags: (0x0010) ACC_FINAL
final java.util.concurrent.ConcurrentLinkedDeque<java.util.List<java.nio.ByteBuffer>> queue;
descriptor: Ljava/util/concurrent/ConcurrentLinkedDeque;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentLinkedDeque<Ljava/util/List<Ljava/nio/ByteBuffer;>;>;
final java.util.concurrent.ConcurrentLinkedDeque<java.util.List<java.nio.ByteBuffer>> priority;
descriptor: Ljava/util/concurrent/ConcurrentLinkedDeque;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentLinkedDeque<Ljava/util/List<Ljava/nio/ByteBuffer;>;>;
volatile java.util.concurrent.Flow$Subscriber<? super java.util.List<java.nio.ByteBuffer>> subscriber;
descriptor: Ljava/util/concurrent/Flow$Subscriber;
flags: (0x0040) ACC_VOLATILE
Signature: Ljava/util/concurrent/Flow$Subscriber<-Ljava/util/List<Ljava/nio/ByteBuffer;>;>;
volatile jdk.internal.net.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription subscription;
descriptor: Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher$HttpWriteSubscription;
flags: (0x0040) ACC_VOLATILE
final jdk.internal.net.http.common.SequentialScheduler writeScheduler;
descriptor: Ljdk/internal/net/http/common/SequentialScheduler;
flags: (0x0010) ACC_FINAL
final jdk.internal.net.http.HttpConnection this$0;
descriptor: Ljdk/internal/net/http/HttpConnection;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(jdk.internal.net.http.HttpConnection);
descriptor: (Ljdk/internal/net/http/HttpConnection;)V
flags: (0x0000)
Code:
stack=4, locals=2, args_size=2
start local 0 0: aload 0
aload 1
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
invokespecial jdk.internal.net.http.HttpConnection$PlainHttpPublisher.<init>:(Ljdk/internal/net/http/HttpConnection;Ljava/lang/Object;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;
MethodParameters:
Name Flags
this$0 final
void <init>(jdk.internal.net.http.HttpConnection, java.lang.Object);
descriptor: (Ljdk/internal/net/http/HttpConnection;Ljava/lang/Object;)V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=3
start local 0 start local 2 0: aload 0
aload 1
putfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher.this$0:Ljdk/internal/net/http/HttpConnection;
aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.ConcurrentLinkedDeque
dup
invokespecial java.util.concurrent.ConcurrentLinkedDeque.<init>:()V
putfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher.queue:Ljava/util/concurrent/ConcurrentLinkedDeque;
2: aload 0
new java.util.concurrent.ConcurrentLinkedDeque
dup
invokespecial java.util.concurrent.ConcurrentLinkedDeque.<init>:()V
putfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher.priority:Ljava/util/concurrent/ConcurrentLinkedDeque;
3: aload 0
4: new jdk.internal.net.http.common.SequentialScheduler
dup
aload 0
invokedynamic run(Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;)Ljdk/internal/net/http/common/SequentialScheduler$RestartableTask;
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:
(Ljdk/internal/net/http/common/SequentialScheduler$DeferredCompleter;)V
jdk/internal/net/http/HttpConnection$PlainHttpPublisher.flushTask(Ljdk/internal/net/http/common/SequentialScheduler$DeferredCompleter;)V (5)
(Ljdk/internal/net/http/common/SequentialScheduler$DeferredCompleter;)V
invokespecial jdk.internal.net.http.common.SequentialScheduler.<init>:(Ljdk/internal/net/http/common/SequentialScheduler$RestartableTask;)V
putfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher.writeScheduler:Ljdk/internal/net/http/common/SequentialScheduler;
5: aload 0
aload 2
putfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher.reading:Ljava/lang/Object;
6: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;
0 7 2 readingLock Ljava/lang/Object;
MethodParameters:
Name Flags
this$0 final
readingLock
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=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher.reading:Ljava/lang/Object;
dup
astore 2
monitorenter
1: aload 0
getfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher.subscription:Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher$HttpWriteSubscription;
ifnonnull 3
2: aload 0
new jdk.internal.net.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription
dup
aload 0
invokespecial jdk.internal.net.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.<init>:(Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;)V
putfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher.subscription:Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher$HttpWriteSubscription;
3: StackMap locals: java.lang.Object
StackMap stack:
aload 0
aload 1
putfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher.subscriber:Ljava/util/concurrent/Flow$Subscriber;
4: aload 2
monitorexit
5: goto 8
StackMap locals:
StackMap stack: java.lang.Throwable
6: aload 2
monitorexit
7: athrow
8: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher.subscription:Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher$HttpWriteSubscription;
invokeinterface java.util.concurrent.Flow$Subscriber.onSubscribe:(Ljava/util/concurrent/Flow$Subscription;)V
9: aload 0
invokevirtual jdk.internal.net.http.HttpConnection$PlainHttpPublisher.signal:()V
10: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;
0 11 1 subscriber Ljava/util/concurrent/Flow$Subscriber<-Ljava/util/List<Ljava/nio/ByteBuffer;>;>;
Exception table:
from to target type
1 5 6 any
6 7 6 any
Signature: (Ljava/util/concurrent/Flow$Subscriber<-Ljava/util/List<Ljava/nio/ByteBuffer;>;>;)V
MethodParameters:
Name Flags
subscriber
void flushTask(jdk.internal.net.http.common.SequentialScheduler$DeferredCompleter);
descriptor: (Ljdk/internal/net/http/common/SequentialScheduler$DeferredCompleter;)V
flags: (0x0000)
Code:
stack=1, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher.subscription:Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher$HttpWriteSubscription;
astore 2
start local 2 1: aload 2
ifnull 6
aload 2
invokevirtual jdk.internal.net.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription.flush:()V
end local 2 2: goto 6
StackMap locals:
StackMap stack: java.lang.Throwable
3: astore 3
4: aload 1
invokevirtual jdk.internal.net.http.common.SequentialScheduler$DeferredCompleter.complete:()V
5: aload 3
athrow
6: StackMap locals:
StackMap stack:
aload 1
invokevirtual jdk.internal.net.http.common.SequentialScheduler$DeferredCompleter.complete:()V
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;
0 8 1 completer Ljdk/internal/net/http/common/SequentialScheduler$DeferredCompleter;
1 2 2 sub Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher$HttpWriteSubscription;
Exception table:
from to target type
0 3 3 any
MethodParameters:
Name Flags
completer
void signal();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher.writeScheduler:Ljdk/internal/net/http/common/SequentialScheduler;
invokevirtual jdk.internal.net.http.common.SequentialScheduler.runOrSchedule:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;
public void enqueue(java.util.List<java.nio.ByteBuffer>);
descriptor: (Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher.queue:Ljava/util/concurrent/ConcurrentLinkedDeque;
aload 1
invokevirtual java.util.concurrent.ConcurrentLinkedDeque.add:(Ljava/lang/Object;)Z
pop
1: aload 1
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
invokedynamic applyAsInt()Ljava/util/function/ToIntFunction;
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;)I
java/nio/Buffer.remaining()I (5)
(Ljava/nio/ByteBuffer;)I
invokeinterface java.util.stream.Stream.mapToInt:(Ljava/util/function/ToIntFunction;)Ljava/util/stream/IntStream;
invokeinterface java.util.stream.IntStream.sum:()I
istore 2
start local 2 2: aload 0
getfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher.this$0:Ljdk/internal/net/http/HttpConnection;
getfield jdk.internal.net.http.HttpConnection.debug:Ljdk/internal/net/http/common/Logger;
ldc "added %d bytes to the write queue"
iconst_1
anewarray java.lang.Object
dup
iconst_0
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;[Ljava/lang/Object;)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/HttpConnection$PlainHttpPublisher;
0 4 1 buffers Ljava/util/List<Ljava/nio/ByteBuffer;>;
2 4 2 bytes I
Exceptions:
throws java.io.IOException
Signature: (Ljava/util/List<Ljava/nio/ByteBuffer;>;)V
MethodParameters:
Name Flags
buffers
public void enqueueUnordered(java.util.List<java.nio.ByteBuffer>);
descriptor: (Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
invokedynamic applyAsInt()Ljava/util/function/ToIntFunction;
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;)I
java/nio/Buffer.remaining()I (5)
(Ljava/nio/ByteBuffer;)I
invokeinterface java.util.stream.Stream.mapToInt:(Ljava/util/function/ToIntFunction;)Ljava/util/stream/IntStream;
invokeinterface java.util.stream.IntStream.sum:()I
istore 2
start local 2 1: aload 0
getfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher.priority:Ljava/util/concurrent/ConcurrentLinkedDeque;
aload 1
invokevirtual java.util.concurrent.ConcurrentLinkedDeque.add:(Ljava/lang/Object;)Z
pop
2: aload 0
getfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher.this$0:Ljdk/internal/net/http/HttpConnection;
getfield jdk.internal.net.http.HttpConnection.debug:Ljdk/internal/net/http/common/Logger;
ldc "added %d bytes in the priority write queue"
iconst_1
anewarray java.lang.Object
dup
iconst_0
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;[Ljava/lang/Object;)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/HttpConnection$PlainHttpPublisher;
0 4 1 buffers Ljava/util/List<Ljava/nio/ByteBuffer;>;
1 4 2 bytes I
Exceptions:
throws java.io.IOException
Signature: (Ljava/util/List<Ljava/nio/ByteBuffer;>;)V
MethodParameters:
Name Flags
buffers
public void signalEnqueued();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher.this$0:Ljdk/internal/net/http/HttpConnection;
getfield jdk.internal.net.http.HttpConnection.debug:Ljdk/internal/net/http/common/Logger;
ldc "signalling the publisher of the write queue"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
1: aload 0
invokevirtual jdk.internal.net.http.HttpConnection$PlainHttpPublisher.signal:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;
Exceptions:
throws java.io.IOException
static jdk.internal.net.http.HttpConnection access$0(jdk.internal.net.http.HttpConnection$PlainHttpPublisher);
descriptor: (Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;)Ljdk/internal/net/http/HttpConnection;
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
getfield jdk.internal.net.http.HttpConnection$PlainHttpPublisher.this$0:Ljdk/internal/net/http/HttpConnection;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "HttpConnection.java"
NestHost: jdk.internal.net.http.HttpConnection
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
abstract HttpPublisher = jdk.internal.net.http.HttpConnection$HttpPublisher of jdk.internal.net.http.HttpConnection
final PlainHttpPublisher = jdk.internal.net.http.HttpConnection$PlainHttpPublisher of jdk.internal.net.http.HttpConnection
final HttpWriteSubscription = jdk.internal.net.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription of jdk.internal.net.http.HttpConnection$PlainHttpPublisher
public abstract DeferredCompleter = jdk.internal.net.http.common.SequentialScheduler$DeferredCompleter of jdk.internal.net.http.common.SequentialScheduler
public abstract RestartableTask = jdk.internal.net.http.common.SequentialScheduler$RestartableTask of jdk.internal.net.http.common.SequentialScheduler