class jdk.incubator.http.Stream$RequestSubscriber implements java.util.concurrent.Flow$Subscriber<java.nio.ByteBuffer>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.incubator.http.Stream$RequestSubscriber
super_class: java.lang.Object
{
private final long contentLength;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile long remainingContentLength;
descriptor: J
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile java.util.concurrent.Flow$Subscription subscription;
descriptor: Ljava/util/concurrent/Flow$Subscription;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
final java.util.concurrent.ConcurrentLinkedDeque<java.nio.ByteBuffer> outgoing;
descriptor: Ljava/util/concurrent/ConcurrentLinkedDeque;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentLinkedDeque<Ljava/nio/ByteBuffer;>;
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;>;
final jdk.incubator.http.internal.common.SequentialScheduler sendScheduler;
descriptor: Ljdk/incubator/http/internal/common/SequentialScheduler;
flags: (0x0010) ACC_FINAL
final jdk.incubator.http.Stream this$0;
descriptor: Ljdk/incubator/http/Stream;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Ljdk/incubator/http/Stream;
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.Stream$RequestSubscriber.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(jdk.incubator.http.Stream, long);
descriptor: (Ljdk/incubator/http/Stream;J)V
flags: (0x0000)
Code:
stack=3, locals=4, args_size=3
start local 0 start local 2 0: aload 0
aload 1
putfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
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.incubator.http.Stream$RequestSubscriber.outgoing:Ljava/util/concurrent/ConcurrentLinkedDeque;
2: aload 0
new java.util.concurrent.atomic.AtomicReference
dup
invokespecial java.util.concurrent.atomic.AtomicReference.<init>:()V
putfield jdk.incubator.http.Stream$RequestSubscriber.errorRef:Ljava/util/concurrent/atomic/AtomicReference;
3: aload 0
lload 2
putfield jdk.incubator.http.Stream$RequestSubscriber.contentLength:J
4: aload 0
lload 2
putfield jdk.incubator.http.Stream$RequestSubscriber.remainingContentLength:J
5: aload 0
6: aload 0
invokedynamic run(Ljdk/incubator/http/Stream$RequestSubscriber;)Ljava/lang/Runnable;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()V
jdk/incubator/http/Stream$RequestSubscriber.trySend()V (5)
()V
invokestatic jdk.incubator.http.internal.common.SequentialScheduler.synchronizedScheduler:(Ljava/lang/Runnable;)Ljdk/incubator/http/internal/common/SequentialScheduler;
7: putfield jdk.incubator.http.Stream$RequestSubscriber.sendScheduler:Ljdk/incubator/http/internal/common/SequentialScheduler;
8: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/incubator/http/Stream$RequestSubscriber;
0 9 2 contentLen J
MethodParameters:
Name Flags
this$0 final
contentLen
public void onSubscribe(java.util.concurrent.Flow$Subscription);
descriptor: (Ljava/util/concurrent/Flow$Subscription;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.subscription:Ljava/util/concurrent/Flow$Subscription;
ifnull 2
1: new java.lang.IllegalStateException
dup
ldc "already subscribed"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield jdk.incubator.http.Stream$RequestSubscriber.subscription:Ljava/util/concurrent/Flow$Subscription;
3: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
getfield jdk.incubator.http.Stream.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
ldc "RequestSubscriber: onSubscribe, request 1"
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;)V
4: aload 1
lconst_1
invokeinterface java.util.concurrent.Flow$Subscription.request:(J)V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/incubator/http/Stream$RequestSubscriber;
0 6 1 subscription Ljava/util/concurrent/Flow$Subscription;
MethodParameters:
Name Flags
subscription
public void onNext(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
getfield jdk.incubator.http.Stream.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
ldc "RequestSubscriber: onNext(%d)"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;[Ljava/lang/Object;)V
1: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.outgoing:Ljava/util/concurrent/ConcurrentLinkedDeque;
invokevirtual java.util.concurrent.ConcurrentLinkedDeque.size:()I
istore 2
start local 2 2: getstatic jdk.incubator.http.Stream$RequestSubscriber.$assertionsDisabled:Z
ifne 3
iload 2
ifeq 3
new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "non-zero size: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
3: StackMap locals: int
StackMap stack:
aload 0
aload 1
invokevirtual jdk.incubator.http.Stream$RequestSubscriber.onNextImpl:(Ljava/nio/ByteBuffer;)V
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/incubator/http/Stream$RequestSubscriber;
0 5 1 item Ljava/nio/ByteBuffer;
2 5 2 size I
MethodParameters:
Name Flags
item
private void onNextImpl(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
getfield jdk.incubator.http.Stream.requestBodyCF:Ljava/util/concurrent/CompletableFuture;
invokevirtual java.util.concurrent.CompletableFuture.isDone:()Z
ifeq 4
1: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.sendScheduler:Ljdk/incubator/http/internal/common/SequentialScheduler;
invokevirtual jdk.incubator.http.internal.common.SequentialScheduler.stop:()V
2: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.subscription:Ljava/util/concurrent/Flow$Subscription;
invokeinterface java.util.concurrent.Flow$Subscription.cancel:()V
3: return
4: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.outgoing:Ljava/util/concurrent/ConcurrentLinkedDeque;
aload 1
invokevirtual java.util.concurrent.ConcurrentLinkedDeque.add:(Ljava/lang/Object;)Z
pop
5: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.sendScheduler:Ljdk/incubator/http/internal/common/SequentialScheduler;
invokevirtual jdk.incubator.http.internal.common.SequentialScheduler.runOrSchedule:()V
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/incubator/http/Stream$RequestSubscriber;
0 7 1 item Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
item
public void onError(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
getfield jdk.incubator.http.Stream.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
aload 1
invokedynamic get(Ljava/lang/Throwable;)Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
jdk/incubator/http/Stream$RequestSubscriber.lambda$1(Ljava/lang/Throwable;)Ljava/lang/String; (6)
()Ljava/lang/String;
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/util/function/Supplier;)V
1: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.errorRef:Ljava/util/concurrent/atomic/AtomicReference;
aconst_null
aload 1
invokevirtual java.util.concurrent.atomic.AtomicReference.compareAndSet:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 3
2: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.sendScheduler:Ljdk/incubator/http/internal/common/SequentialScheduler;
invokevirtual jdk.incubator.http.internal.common.SequentialScheduler.runOrSchedule:()V
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/incubator/http/Stream$RequestSubscriber;
0 4 1 throwable Ljava/lang/Throwable;
MethodParameters:
Name Flags
throwable
public void onComplete();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
getfield jdk.incubator.http.Stream.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
ldc "RequestSubscriber: onComplete"
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;)V
1: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.outgoing:Ljava/util/concurrent/ConcurrentLinkedDeque;
invokevirtual java.util.concurrent.ConcurrentLinkedDeque.size:()I
istore 1
start local 1 2: getstatic jdk.incubator.http.Stream$RequestSubscriber.$assertionsDisabled:Z
ifne 3
iload 1
ifeq 3
iload 1
iconst_1
if_icmpeq 3
new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "non-zero or one size: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
3: StackMap locals: int
StackMap stack:
aload 0
getstatic jdk.incubator.http.Stream.COMPLETED:Ljava/nio/ByteBuffer;
invokevirtual jdk.incubator.http.Stream$RequestSubscriber.onNextImpl:(Ljava/nio/ByteBuffer;)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/incubator/http/Stream$RequestSubscriber;
2 5 1 size I
void trySend();
descriptor: ()V
flags: (0x0000)
Code:
stack=7, locals=5, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.errorRef:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast java.lang.Throwable
astore 1
start local 1 1: aload 1
ifnull 8
2: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.sendScheduler:Ljdk/incubator/http/internal/common/SequentialScheduler;
invokevirtual jdk.incubator.http.internal.common.SequentialScheduler.stop:()V
3: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
getfield jdk.incubator.http.Stream.requestBodyCF:Ljava/util/concurrent/CompletableFuture;
invokevirtual java.util.concurrent.CompletableFuture.isDone:()Z
ifeq 5
4: return
5: StackMap locals: java.lang.Throwable
StackMap stack:
aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.subscription:Ljava/util/concurrent/Flow$Subscription;
invokeinterface java.util.concurrent.Flow$Subscription.cancel:()V
6: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
getfield jdk.incubator.http.Stream.requestBodyCF:Ljava/util/concurrent/CompletableFuture;
aload 1
invokevirtual java.util.concurrent.CompletableFuture.completeExceptionally:(Ljava/lang/Throwable;)Z
pop
7: return
8: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.outgoing:Ljava/util/concurrent/ConcurrentLinkedDeque;
invokevirtual java.util.concurrent.ConcurrentLinkedDeque.peekFirst:()Ljava/lang/Object;
checkcast java.nio.ByteBuffer
astore 2
start local 2 9: aload 2
ifnonnull 11
10: return
11: StackMap locals: java.nio.ByteBuffer
StackMap stack:
aload 2
getstatic jdk.incubator.http.Stream.COMPLETED:Ljava/nio/ByteBuffer;
if_acmpne 40
12: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.sendScheduler:Ljdk/incubator/http/internal/common/SequentialScheduler;
invokevirtual jdk.incubator.http.internal.common.SequentialScheduler.stop:()V
13: aload 0
invokevirtual jdk.incubator.http.Stream$RequestSubscriber.complete:()V
14: return
15: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
getfield jdk.incubator.http.Stream.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
ldc "trySend: %d"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
invokevirtual java.nio.ByteBuffer.remaining:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;[Ljava/lang/Object;)V
16: getstatic jdk.incubator.http.Stream$RequestSubscriber.$assertionsDisabled:Z
ifne 17
aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
getfield jdk.incubator.http.Stream.endStreamSent:Z
ifeq 17
new java.lang.AssertionError
dup
ldc "internal error, send data after END_STREAM flag"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
17: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
aload 2
invokevirtual jdk.incubator.http.Stream.getDataFrame:(Ljava/nio/ByteBuffer;)Ljdk/incubator/http/internal/frame/DataFrame;
astore 3
start local 3 18: aload 3
ifnonnull 23
19: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
getfield jdk.incubator.http.Stream.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
ldc "trySend: can't send yet: %d"
iconst_1
anewarray java.lang.Object
dup
iconst_0
20: aload 2
invokevirtual java.nio.ByteBuffer.remaining:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
21: invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;[Ljava/lang/Object;)V
22: return
23: StackMap locals: jdk.incubator.http.internal.frame.DataFrame
StackMap stack:
aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.contentLength:J
lconst_0
lcmp
ifle 38
24: aload 0
dup
getfield jdk.incubator.http.Stream$RequestSubscriber.remainingContentLength:J
aload 3
invokevirtual jdk.incubator.http.internal.frame.DataFrame.getDataLength:()I
i2l
lsub
putfield jdk.incubator.http.Stream$RequestSubscriber.remainingContentLength:J
25: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.remainingContentLength:J
lconst_0
lcmp
ifge 35
26: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
invokevirtual jdk.incubator.http.Stream.connection:()Ljdk/incubator/http/HttpConnection;
invokevirtual jdk.incubator.http.HttpConnection.getConnectionFlow:()Ljdk/incubator/http/internal/common/FlowTube;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
27: ldc " stream="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
getfield jdk.incubator.http.Stream.streamid:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
28: ldc "["
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getName:()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;
29: ldc "Too many bytes in request body. Expected: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
30: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.contentLength:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc ", got: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
31: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.contentLength:J
aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.remainingContentLength:J
lsub
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
32: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 4
start local 4 33: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
getfield jdk.incubator.http.Stream.connection:Ljdk/incubator/http/Http2Connection;
aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
getfield jdk.incubator.http.Stream.streamid:I
iconst_1
invokevirtual jdk.incubator.http.Http2Connection.resetStream:(II)V
34: new java.io.IOException
dup
aload 4
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 4 35: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.remainingContentLength:J
lconst_0
lcmp
ifne 38
36: aload 3
iconst_1
invokevirtual jdk.incubator.http.internal.frame.DataFrame.setFlag:(I)V
37: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
iconst_1
putfield jdk.incubator.http.Stream.endStreamSent:Z
38: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
getfield jdk.incubator.http.Stream.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
ldc "trySend: sending: %d"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 3
invokevirtual jdk.incubator.http.internal.frame.DataFrame.getDataLength:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;[Ljava/lang/Object;)V
39: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
getfield jdk.incubator.http.Stream.connection:Ljdk/incubator/http/Http2Connection;
aload 3
invokevirtual jdk.incubator.http.Http2Connection.sendDataFrame:(Ljdk/incubator/http/internal/frame/DataFrame;)V
end local 3 40: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifne 15
41: getstatic jdk.incubator.http.Stream$RequestSubscriber.$assertionsDisabled:Z
ifne 42
aload 2
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifeq 42
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
42: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.outgoing:Ljava/util/concurrent/ConcurrentLinkedDeque;
invokevirtual java.util.concurrent.ConcurrentLinkedDeque.removeFirst:()Ljava/lang/Object;
checkcast java.nio.ByteBuffer
astore 3
start local 3 43: getstatic jdk.incubator.http.Stream$RequestSubscriber.$assertionsDisabled:Z
ifne 44
aload 3
aload 2
if_acmpeq 44
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
end local 3 end local 2 44: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.outgoing:Ljava/util/concurrent/ConcurrentLinkedDeque;
invokevirtual java.util.concurrent.ConcurrentLinkedDeque.peekFirst:()Ljava/lang/Object;
ifnonnull 8
45: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
getfield jdk.incubator.http.Stream.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
ldc "trySend: request 1"
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;)V
46: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.subscription:Ljava/util/concurrent/Flow$Subscription;
lconst_1
invokeinterface java.util.concurrent.Flow$Subscription.request:(J)V
end local 1 47: goto 53
StackMap locals: jdk.incubator.http.Stream$RequestSubscriber
StackMap stack: java.lang.Throwable
48: astore 1
start local 1 49: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
getfield jdk.incubator.http.Stream.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
ldc "trySend: "
aload 1
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;Ljava/lang/Throwable;)V
50: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.sendScheduler:Ljdk/incubator/http/internal/common/SequentialScheduler;
invokevirtual jdk.incubator.http.internal.common.SequentialScheduler.stop:()V
51: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.subscription:Ljava/util/concurrent/Flow$Subscription;
invokeinterface java.util.concurrent.Flow$Subscription.cancel:()V
52: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
getfield jdk.incubator.http.Stream.requestBodyCF:Ljava/util/concurrent/CompletableFuture;
aload 1
invokevirtual java.util.concurrent.CompletableFuture.completeExceptionally:(Ljava/lang/Throwable;)Z
pop
end local 1 53: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 54 0 this Ljdk/incubator/http/Stream$RequestSubscriber;
1 47 1 t Ljava/lang/Throwable;
9 44 2 item Ljava/nio/ByteBuffer;
18 40 3 df Ljdk/incubator/http/internal/frame/DataFrame;
33 35 4 msg Ljava/lang/String;
43 44 3 b Ljava/nio/ByteBuffer;
49 53 1 ex Ljava/lang/Throwable;
Exception table:
from to target type
0 4 48 Class java.lang.Throwable
5 7 48 Class java.lang.Throwable
8 10 48 Class java.lang.Throwable
11 14 48 Class java.lang.Throwable
15 22 48 Class java.lang.Throwable
23 47 48 Class java.lang.Throwable
private void complete();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=5, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.remainingContentLength:J
lstore 1
start local 1 1: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.contentLength:J
lload 1
lsub
lstore 3
start local 3 2: lload 1
lconst_0
lcmp
ifle 11
3: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
getfield jdk.incubator.http.Stream.connection:Ljdk/incubator/http/Http2Connection;
aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
getfield jdk.incubator.http.Stream.streamid:I
iconst_1
invokevirtual jdk.incubator.http.Http2Connection.resetStream:(II)V
4: new java.io.IOException
dup
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
invokevirtual jdk.incubator.http.Stream.connection:()Ljdk/incubator/http/HttpConnection;
invokevirtual jdk.incubator.http.HttpConnection.getConnectionFlow:()Ljdk/incubator/http/internal/common/FlowTube;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
5: ldc " stream="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
getfield jdk.incubator.http.Stream.streamid:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
6: ldc "["
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getName:()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;
7: ldc "Too few bytes returned by the publisher ("
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
8: lload 3
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc "/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
9: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.contentLength: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;
10: invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals: long long
StackMap stack:
aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
getfield jdk.incubator.http.Stream.endStreamSent:Z
ifne 14
12: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
iconst_1
putfield jdk.incubator.http.Stream.endStreamSent:Z
13: aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
getfield jdk.incubator.http.Stream.connection:Ljdk/incubator/http/Http2Connection;
aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
invokevirtual jdk.incubator.http.Stream.getEmptyEndStreamDataFrame:()Ljdk/incubator/http/internal/frame/DataFrame;
invokevirtual jdk.incubator.http.Http2Connection.sendDataFrame:(Ljdk/incubator/http/internal/frame/DataFrame;)V
14: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.Stream$RequestSubscriber.this$0:Ljdk/incubator/http/Stream;
getfield jdk.incubator.http.Stream.requestBodyCF:Ljava/util/concurrent/CompletableFuture;
aconst_null
invokevirtual java.util.concurrent.CompletableFuture.complete:(Ljava/lang/Object;)Z
pop
15: return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljdk/incubator/http/Stream$RequestSubscriber;
1 16 1 remaining J
2 16 3 written J
Exceptions:
throws java.io.IOException
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.nio.ByteBuffer
invokevirtual jdk.incubator.http.Stream$RequestSubscriber.onNext:(Ljava/nio/ByteBuffer;)V
return
LocalVariableTable:
Start End Slot Name Signature
private static java.lang.String lambda$1(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
0: new java.lang.StringBuilder
dup
ldc "RequestSubscriber: onError: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Ljava/util/concurrent/Flow$Subscriber<Ljava/nio/ByteBuffer;>;
SourceFile: "Stream.java"
NestHost: jdk.incubator.http.Stream
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
RequestSubscriber = jdk.incubator.http.Stream$RequestSubscriber of jdk.incubator.http.Stream