final class jdk.internal.net.http.LineSubscriberAdapter$LineSubscription implements java.util.concurrent.Flow$Subscription
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.internal.net.http.LineSubscriberAdapter$LineSubscription
super_class: java.lang.Object
{
final java.util.concurrent.Flow$Subscription upstreamSubscription;
descriptor: Ljava/util/concurrent/Flow$Subscription;
flags: (0x0010) ACC_FINAL
final java.nio.charset.CharsetDecoder decoder;
descriptor: Ljava/nio/charset/CharsetDecoder;
flags: (0x0010) ACC_FINAL
final java.lang.String newline;
descriptor: Ljava/lang/String;
flags: (0x0010) ACC_FINAL
final jdk.internal.net.http.common.Demand downstreamDemand;
descriptor: Ljdk/internal/net/http/common/Demand;
flags: (0x0010) ACC_FINAL
final java.util.concurrent.ConcurrentLinkedDeque<java.nio.ByteBuffer> queue;
descriptor: Ljava/util/concurrent/ConcurrentLinkedDeque;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentLinkedDeque<Ljava/nio/ByteBuffer;>;
final jdk.internal.net.http.common.SequentialScheduler scheduler;
descriptor: Ljdk/internal/net/http/common/SequentialScheduler;
flags: (0x0010) ACC_FINAL
final java.util.concurrent.Flow$Subscriber<? super java.lang.String> upstream;
descriptor: Ljava/util/concurrent/Flow$Subscriber;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/concurrent/Flow$Subscriber<-Ljava/lang/String;>;
final java.util.concurrent.CompletableFuture<?> cf;
descriptor: Ljava/util/concurrent/CompletableFuture;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/concurrent/CompletableFuture<*>;
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 java.util.concurrent.atomic.AtomicLong demanded;
descriptor: Ljava/util/concurrent/atomic/AtomicLong;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile boolean completed;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile boolean cancelled;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private final char[] chars;
descriptor: [C
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.nio.ByteBuffer leftover;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.nio.CharBuffer buffer;
descriptor: Ljava/nio/CharBuffer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.StringBuilder builder;
descriptor: Ljava/lang/StringBuilder;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.lang.String nextLine;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
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/LineSubscriberAdapter;
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.LineSubscriberAdapter$LineSubscription.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>(java.util.concurrent.Flow$Subscription, java.nio.charset.CharsetDecoder, java.lang.String, java.util.concurrent.Flow$Subscriber<? super java.lang.String>, java.util.concurrent.CompletableFuture<?>);
descriptor: (Ljava/util/concurrent/Flow$Subscription;Ljava/nio/charset/CharsetDecoder;Ljava/lang/String;Ljava/util/concurrent/Flow$Subscriber;Ljava/util/concurrent/CompletableFuture;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.atomic.AtomicReference
dup
invokespecial java.util.concurrent.atomic.AtomicReference.<init>:()V
putfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.errorRef:Ljava/util/concurrent/atomic/AtomicReference;
2: aload 0
new java.util.concurrent.atomic.AtomicLong
dup
invokespecial java.util.concurrent.atomic.AtomicLong.<init>:()V
putfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.demanded:Ljava/util/concurrent/atomic/AtomicLong;
3: aload 0
sipush 1024
newarray 5
putfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.chars:[C
4: aload 0
bipush 64
newarray 8
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
putfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.leftover:Ljava/nio/ByteBuffer;
5: aload 0
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.chars:[C
invokestatic java.nio.CharBuffer.wrap:([C)Ljava/nio/CharBuffer;
putfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.buffer:Ljava/nio/CharBuffer;
6: aload 0
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
putfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.builder:Ljava/lang/StringBuilder;
7: aload 0
new jdk.internal.net.http.common.Demand
dup
invokespecial jdk.internal.net.http.common.Demand.<init>:()V
putfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.downstreamDemand:Ljdk/internal/net/http/common/Demand;
8: aload 0
new java.util.concurrent.ConcurrentLinkedDeque
dup
invokespecial java.util.concurrent.ConcurrentLinkedDeque.<init>:()V
putfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.queue:Ljava/util/concurrent/ConcurrentLinkedDeque;
9: aload 0
aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.concurrent.Flow$Subscription
putfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.upstreamSubscription:Ljava/util/concurrent/Flow$Subscription;
10: aload 0
aload 2
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.nio.charset.CharsetDecoder
putfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.decoder:Ljava/nio/charset/CharsetDecoder;
11: aload 0
aload 3
putfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.newline:Ljava/lang/String;
12: aload 0
aload 4
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.concurrent.Flow$Subscriber
putfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.upstream:Ljava/util/concurrent/Flow$Subscriber;
13: aload 0
aload 5
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.concurrent.CompletableFuture
putfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.cf:Ljava/util/concurrent/CompletableFuture;
14: aload 0
aload 0
invokedynamic run(Ljdk/internal/net/http/LineSubscriberAdapter$LineSubscription;)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/internal/net/http/LineSubscriberAdapter$LineSubscription.loop()V (7)
()V
invokestatic jdk.internal.net.http.common.SequentialScheduler.synchronizedScheduler:(Ljava/lang/Runnable;)Ljdk/internal/net/http/common/SequentialScheduler;
putfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.scheduler:Ljdk/internal/net/http/common/SequentialScheduler;
15: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljdk/internal/net/http/LineSubscriberAdapter$LineSubscription;
0 16 1 s Ljava/util/concurrent/Flow$Subscription;
0 16 2 dec Ljava/nio/charset/CharsetDecoder;
0 16 3 separator Ljava/lang/String;
0 16 4 subscriber Ljava/util/concurrent/Flow$Subscriber<-Ljava/lang/String;>;
0 16 5 completion Ljava/util/concurrent/CompletableFuture<*>;
Signature: (Ljava/util/concurrent/Flow$Subscription;Ljava/nio/charset/CharsetDecoder;Ljava/lang/String;Ljava/util/concurrent/Flow$Subscriber<-Ljava/lang/String;>;Ljava/util/concurrent/CompletableFuture<*>;)V
MethodParameters:
Name Flags
s
dec
separator
subscriber
completion
public void request(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.cancelled:Z
ifeq 1
return
1: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.downstreamDemand:Ljdk/internal/net/http/common/Demand;
lload 1
invokevirtual jdk.internal.net.http.common.Demand.increase:(J)Z
ifeq 3
2: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.scheduler:Ljdk/internal/net/http/common/SequentialScheduler;
invokevirtual jdk.internal.net.http.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/internal/net/http/LineSubscriberAdapter$LineSubscription;
0 4 1 n J
MethodParameters:
Name Flags
n
public void cancel();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
putfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.cancelled:Z
1: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.upstreamSubscription:Ljava/util/concurrent/Flow$Subscription;
invokeinterface java.util.concurrent.Flow$Subscription.cancel:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/net/http/LineSubscriberAdapter$LineSubscription;
public void submit(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.LineSubscriberAdapter$LineSubscription.queue:Ljava/util/concurrent/ConcurrentLinkedDeque;
aload 1
invokevirtual java.util.concurrent.ConcurrentLinkedDeque.addAll:(Ljava/util/Collection;)Z
pop
1: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.demanded:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.decrementAndGet:()J
pop2
2: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.scheduler:Ljdk/internal/net/http/common/SequentialScheduler;
invokevirtual jdk.internal.net.http.common.SequentialScheduler.runOrSchedule:()V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/net/http/LineSubscriberAdapter$LineSubscription;
0 4 1 list Ljava/util/List<Ljava/nio/ByteBuffer;>;
Signature: (Ljava/util/List<Ljava/nio/ByteBuffer;>;)V
MethodParameters:
Name Flags
list
public void signalComplete();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
putfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.completed:Z
1: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.scheduler:Ljdk/internal/net/http/common/SequentialScheduler;
invokevirtual jdk.internal.net.http.common.SequentialScheduler.runOrSchedule:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/net/http/LineSubscriberAdapter$LineSubscription;
public void signalError(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.internal.net.http.LineSubscriberAdapter$LineSubscription.errorRef:Ljava/util/concurrent/atomic/AtomicReference;
aconst_null
1: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Throwable
2: invokevirtual java.util.concurrent.atomic.AtomicReference.compareAndSet:(Ljava/lang/Object;Ljava/lang/Object;)Z
3: ifeq 5
4: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.scheduler:Ljdk/internal/net/http/common/SequentialScheduler;
invokevirtual jdk.internal.net.http.common.SequentialScheduler.runOrSchedule:()V
5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/net/http/LineSubscriberAdapter$LineSubscription;
0 6 1 error Ljava/lang/Throwable;
MethodParameters:
Name Flags
error
private boolean isUnderFlow(java.nio.ByteBuffer, java.nio.CharBuffer, boolean);
descriptor: (Ljava/nio/ByteBuffer;Ljava/nio/CharBuffer;Z)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.leftover:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.position:()I
istore 4
start local 4 1: iload 4
ifne 3
2: iconst_0
ireturn
3: StackMap locals: int
StackMap stack:
aconst_null
astore 5
start local 5 4: goto 26
5: StackMap locals: java.nio.charset.CoderResult
StackMap stack:
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.leftover:Ljava/nio/ByteBuffer;
iload 4
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/ByteBuffer;
pop
6: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.leftover:Ljava/nio/ByteBuffer;
iinc 4 1
iload 4
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/ByteBuffer;
pop
7: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.leftover:Ljava/nio/ByteBuffer;
aload 1
invokevirtual java.nio.ByteBuffer.get:()B
invokevirtual java.nio.ByteBuffer.put:(B)Ljava/nio/ByteBuffer;
pop
8: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.leftover:Ljava/nio/ByteBuffer;
iconst_0
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/ByteBuffer;
pop
9: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.decoder:Ljava/nio/charset/CharsetDecoder;
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.leftover:Ljava/nio/ByteBuffer;
aload 2
10: iload 3
ifeq 11
aload 1
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifne 11
iconst_1
goto 12
StackMap locals: jdk.internal.net.http.LineSubscriberAdapter$LineSubscription java.nio.ByteBuffer java.nio.CharBuffer int int java.nio.charset.CoderResult
StackMap stack: java.nio.charset.CharsetDecoder java.nio.ByteBuffer java.nio.CharBuffer
11: iconst_0
12: StackMap locals: jdk.internal.net.http.LineSubscriberAdapter$LineSubscription java.nio.ByteBuffer java.nio.CharBuffer int int java.nio.charset.CoderResult
StackMap stack: java.nio.charset.CharsetDecoder java.nio.ByteBuffer java.nio.CharBuffer int
invokevirtual java.nio.charset.CharsetDecoder.decode:(Ljava/nio/ByteBuffer;Ljava/nio/CharBuffer;Z)Ljava/nio/charset/CoderResult;
astore 5
13: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.leftover:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.remaining:()I
istore 6
start local 6 14: iload 6
ifle 18
15: getstatic jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.$assertionsDisabled:Z
ifne 16
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.leftover:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.position:()I
ifeq 16
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
16: StackMap locals: int
StackMap stack:
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.leftover:Ljava/nio/ByteBuffer;
iload 6
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/ByteBuffer;
pop
17: goto 19
18: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.leftover:Ljava/nio/ByteBuffer;
iconst_0
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/ByteBuffer;
pop
19: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.leftover:Ljava/nio/ByteBuffer;
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.leftover:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.capacity:()I
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/ByteBuffer;
pop
20: aload 5
invokevirtual java.nio.charset.CoderResult.isUnderflow:()Z
ifeq 22
iload 6
ifle 22
aload 1
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifeq 22
21: goto 26
22: StackMap locals:
StackMap stack:
aload 5
invokevirtual java.nio.charset.CoderResult.isError:()Z
ifeq 24
23: aload 5
invokevirtual java.nio.charset.CoderResult.throwException:()V
24: StackMap locals:
StackMap stack:
getstatic jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.$assertionsDisabled:Z
ifne 25
aload 5
invokevirtual java.nio.charset.CoderResult.isOverflow:()Z
ifeq 25
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
25: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 6 26: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifne 5
27: iload 3
ifeq 28
iconst_0
goto 29
StackMap locals:
StackMap stack:
28: iconst_1
StackMap locals:
StackMap stack: int
29: ireturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 this Ljdk/internal/net/http/LineSubscriberAdapter$LineSubscription;
0 30 1 in Ljava/nio/ByteBuffer;
0 30 2 out Ljava/nio/CharBuffer;
0 30 3 endOfInput Z
1 30 4 limit I
4 30 5 res Ljava/nio/charset/CoderResult;
14 26 6 remaining I
Exceptions:
throws java.nio.charset.CharacterCodingException
MethodParameters:
Name Flags
in
out
endOfInput
private static java.lang.String take(java.lang.StringBuilder, int, int);
descriptor: (Ljava/lang/StringBuilder;II)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: getstatic jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.$assertionsDisabled:Z
ifne 1
iload 1
ifeq 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
iload 2
iload 1
if_icmpne 2
ldc ""
areturn
2: StackMap locals:
StackMap stack:
aload 0
iload 1
iload 2
invokevirtual java.lang.StringBuilder.substring:(II)Ljava/lang/String;
astore 3
start local 3 3: aload 0
iload 1
iload 2
invokevirtual java.lang.StringBuilder.delete:(II)Ljava/lang/StringBuilder;
pop
4: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 b Ljava/lang/StringBuilder;
0 5 1 start I
0 5 2 end I
3 5 3 line Ljava/lang/String;
MethodParameters:
Name Flags
b
start
end
private static int endOfLine(java.lang.StringBuilder, java.lang.String, boolean);
descriptor: (Ljava/lang/StringBuilder;Ljava/lang/String;Z)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual java.lang.StringBuilder.length:()I
istore 3
start local 3 1: aload 1
ifnull 6
2: aload 0
aload 1
invokevirtual java.lang.StringBuilder.indexOf:(Ljava/lang/String;)I
istore 4
start local 4 3: iload 4
iflt 29
4: aload 0
iload 4
iload 4
aload 1
invokevirtual java.lang.String.length:()I
iadd
invokevirtual java.lang.StringBuilder.delete:(II)Ljava/lang/StringBuilder;
pop
5: iload 4
ireturn
end local 4 6: StackMap locals: int
StackMap stack:
iconst_0
istore 4
start local 4 7: iconst_0
istore 5
start local 5 8: goto 25
9: StackMap locals: int int
StackMap stack:
aload 0
iload 5
invokevirtual java.lang.StringBuilder.charAt:(I)C
istore 6
start local 6 10: iload 6
bipush 10
if_icmpne 17
11: aload 0
iload 4
ifeq 12
iload 5
iconst_1
isub
goto 13
StackMap locals: java.lang.StringBuilder java.lang.String int int int int int
StackMap stack: java.lang.StringBuilder
12: iload 5
StackMap locals: java.lang.StringBuilder java.lang.String int int int int int
StackMap stack: java.lang.StringBuilder int
13: iload 5
iconst_1
iadd
invokevirtual java.lang.StringBuilder.delete:(II)Ljava/lang/StringBuilder;
pop
14: iload 4
ifeq 15
iload 5
iconst_1
isub
goto 16
StackMap locals:
StackMap stack:
15: iload 5
StackMap locals:
StackMap stack: int
16: ireturn
17: StackMap locals:
StackMap stack:
iload 4
ifeq 21
18: getstatic jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.$assertionsDisabled:Z
ifne 19
iload 5
ifne 19
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
19: StackMap locals:
StackMap stack:
aload 0
iload 5
iconst_1
isub
iload 5
invokevirtual java.lang.StringBuilder.delete:(II)Ljava/lang/StringBuilder;
pop
20: iload 5
iconst_1
isub
ireturn
21: StackMap locals:
StackMap stack:
iload 6
bipush 13
if_icmpne 22
iconst_1
goto 23
StackMap locals:
StackMap stack:
22: iconst_0
StackMap locals:
StackMap stack: int
23: istore 4
end local 6 24: iinc 5 1
StackMap locals:
StackMap stack:
25: iload 5
iload 3
if_icmplt 9
end local 5 26: iload 4
ifeq 29
iload 2
ifeq 29
27: aload 0
iload 3
iconst_1
isub
iload 3
invokevirtual java.lang.StringBuilder.delete:(II)Ljava/lang/StringBuilder;
pop
28: iload 3
iconst_1
isub
ireturn
end local 4 29: StackMap locals:
StackMap stack:
iload 2
ifeq 30
iload 3
ifle 30
iload 3
goto 31
StackMap locals:
StackMap stack:
30: iconst_m1
StackMap locals:
StackMap stack: int
31: ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 32 0 b Ljava/lang/StringBuilder;
0 32 1 eol Ljava/lang/String;
0 32 2 endOfInput Z
1 32 3 len I
3 6 4 i I
7 29 4 crfound Z
8 26 5 i I
10 24 6 c C
MethodParameters:
Name Flags
b
eol
endOfInput
private static java.lang.String nextLine(java.lang.StringBuilder, java.lang.String, boolean);
descriptor: (Ljava/lang/StringBuilder;Ljava/lang/String;Z)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
iload 2
invokestatic jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.endOfLine:(Ljava/lang/StringBuilder;Ljava/lang/String;Z)I
istore 3
start local 3 1: iload 3
iconst_m1
if_icmple 2
aload 0
iconst_0
iload 3
invokestatic jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.take:(Ljava/lang/StringBuilder;II)Ljava/lang/String;
goto 3
StackMap locals: int
StackMap stack:
2: aconst_null
StackMap locals:
StackMap stack: java.lang.String
3: areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 b Ljava/lang/StringBuilder;
0 4 1 eol Ljava/lang/String;
0 4 2 endOfInput Z
1 4 3 next I
MethodParameters:
Name Flags
b
eol
endOfInput
private java.lang.String nextLine();
descriptor: ()Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=1
start local 0 0: getstatic jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.$assertionsDisabled:Z
ifne 57
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.nextLine:Ljava/lang/String;
ifnull 57
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.completed:Z
ifeq 2
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.queue:Ljava/util/concurrent/ConcurrentLinkedDeque;
invokevirtual java.util.concurrent.ConcurrentLinkedDeque.isEmpty:()Z
ifeq 2
iconst_1
goto 3
StackMap locals:
StackMap stack:
2: iconst_0
StackMap locals:
StackMap stack: int
3: istore 1
start local 1 4: aload 0
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.builder:Ljava/lang/StringBuilder;
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.newline:Ljava/lang/String;
5: iload 1
ifeq 6
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.leftover:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.position:()I
ifne 6
iconst_1
goto 7
StackMap locals: jdk.internal.net.http.LineSubscriberAdapter$LineSubscription int
StackMap stack: jdk.internal.net.http.LineSubscriberAdapter$LineSubscription java.lang.StringBuilder java.lang.String
6: iconst_0
7: StackMap locals: jdk.internal.net.http.LineSubscriberAdapter$LineSubscription int
StackMap stack: jdk.internal.net.http.LineSubscriberAdapter$LineSubscription java.lang.StringBuilder java.lang.String int
invokestatic jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.nextLine:(Ljava/lang/StringBuilder;Ljava/lang/String;Z)Ljava/lang/String;
putfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.nextLine:Ljava/lang/String;
8: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.nextLine:Ljava/lang/String;
ifnull 33
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.nextLine:Ljava/lang/String;
areturn
start local 2 9: StackMap locals: java.nio.ByteBuffer
StackMap stack:
aload 2
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifne 32
10: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.queue:Ljava/util/concurrent/ConcurrentLinkedDeque;
invokevirtual java.util.concurrent.ConcurrentLinkedDeque.poll:()Ljava/lang/Object;
pop
11: goto 33
12: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.buffer:Ljava/nio/CharBuffer;
iconst_0
invokevirtual java.nio.CharBuffer.position:(I)Ljava/nio/CharBuffer;
pop
13: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.buffer:Ljava/nio/CharBuffer;
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.buffer:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.capacity:()I
invokevirtual java.nio.CharBuffer.limit:(I)Ljava/nio/CharBuffer;
pop
14: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.completed:Z
ifeq 15
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.queue:Ljava/util/concurrent/ConcurrentLinkedDeque;
invokevirtual java.util.concurrent.ConcurrentLinkedDeque.size:()I
iconst_1
if_icmpgt 15
iconst_1
goto 16
StackMap locals:
StackMap stack:
15: iconst_0
StackMap locals:
StackMap stack: int
16: istore 3
start local 3 17: aload 0
aload 2
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.buffer:Ljava/nio/CharBuffer;
iload 3
invokevirtual jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.isUnderFlow:(Ljava/nio/ByteBuffer;Ljava/nio/CharBuffer;Z)Z
ifeq 23
18: getstatic jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.$assertionsDisabled:Z
ifne 19
aload 2
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifeq 19
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
19: StackMap locals: int
StackMap stack:
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.buffer:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.position:()I
ifle 33
20: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.buffer:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.flip:()Ljava/nio/CharBuffer;
pop
21: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.builder:Ljava/lang/StringBuilder;
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.buffer:Ljava/nio/CharBuffer;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/CharSequence;)Ljava/lang/StringBuilder;
pop
22: goto 33
23: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.decoder:Ljava/nio/charset/CharsetDecoder;
aload 2
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.buffer:Ljava/nio/CharBuffer;
iload 3
invokevirtual java.nio.charset.CharsetDecoder.decode:(Ljava/nio/ByteBuffer;Ljava/nio/CharBuffer;Z)Ljava/nio/charset/CoderResult;
astore 4
start local 4 24: aload 4
invokevirtual java.nio.charset.CoderResult.isError:()Z
ifeq 25
aload 4
invokevirtual java.nio.charset.CoderResult.throwException:()V
25: StackMap locals: java.nio.charset.CoderResult
StackMap stack:
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.buffer:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.position:()I
ifle 29
26: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.buffer:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.flip:()Ljava/nio/CharBuffer;
pop
27: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.builder:Ljava/lang/StringBuilder;
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.buffer:Ljava/nio/CharBuffer;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/CharSequence;)Ljava/lang/StringBuilder;
pop
28: goto 57
29: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.nio.charset.CoderResult.isUnderflow:()Z
ifeq 32
aload 2
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifeq 32
30: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.leftover:Ljava/nio/ByteBuffer;
aload 2
invokevirtual java.nio.ByteBuffer.put:(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
pop
31: getstatic jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.$assertionsDisabled:Z
ifne 33
aload 2
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifeq 33
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
end local 4 end local 3 32: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifne 12
end local 2 33: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.queue:Ljava/util/concurrent/ConcurrentLinkedDeque;
invokevirtual java.util.concurrent.ConcurrentLinkedDeque.peek:()Ljava/lang/Object;
checkcast java.nio.ByteBuffer
dup
astore 2
start local 2 34: ifnonnull 9
35: getstatic jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.$assertionsDisabled:Z
ifne 36
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.queue:Ljava/util/concurrent/ConcurrentLinkedDeque;
invokevirtual java.util.concurrent.ConcurrentLinkedDeque.isEmpty:()Z
ifne 36
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
36: StackMap locals: java.nio.ByteBuffer
StackMap stack:
iload 1
ifeq 56
37: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.leftover:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/ByteBuffer;
pop
38: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.buffer:Ljava/nio/CharBuffer;
iconst_0
invokevirtual java.nio.CharBuffer.position:(I)Ljava/nio/CharBuffer;
pop
39: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.buffer:Ljava/nio/CharBuffer;
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.buffer:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.capacity:()I
invokevirtual java.nio.CharBuffer.limit:(I)Ljava/nio/CharBuffer;
pop
40: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.decoder:Ljava/nio/charset/CharsetDecoder;
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.leftover:Ljava/nio/ByteBuffer;
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.buffer:Ljava/nio/CharBuffer;
iload 1
invokevirtual java.nio.charset.CharsetDecoder.decode:(Ljava/nio/ByteBuffer;Ljava/nio/CharBuffer;Z)Ljava/nio/charset/CoderResult;
astore 3
start local 3 41: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.buffer:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.position:()I
ifle 44
42: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.buffer:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.flip:()Ljava/nio/CharBuffer;
pop
43: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.builder:Ljava/lang/StringBuilder;
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.buffer:Ljava/nio/CharBuffer;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/CharSequence;)Ljava/lang/StringBuilder;
pop
44: StackMap locals: java.nio.charset.CoderResult
StackMap stack:
aload 3
invokevirtual java.nio.charset.CoderResult.isError:()Z
ifeq 45
aload 3
invokevirtual java.nio.charset.CoderResult.throwException:()V
45: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.buffer:Ljava/nio/CharBuffer;
iconst_0
invokevirtual java.nio.CharBuffer.position:(I)Ljava/nio/CharBuffer;
pop
46: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.buffer:Ljava/nio/CharBuffer;
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.buffer:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.capacity:()I
invokevirtual java.nio.CharBuffer.limit:(I)Ljava/nio/CharBuffer;
pop
47: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.decoder:Ljava/nio/charset/CharsetDecoder;
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.buffer:Ljava/nio/CharBuffer;
invokevirtual java.nio.charset.CharsetDecoder.flush:(Ljava/nio/CharBuffer;)Ljava/nio/charset/CoderResult;
astore 3
48: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.buffer:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.position:()I
ifle 51
49: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.buffer:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.flip:()Ljava/nio/CharBuffer;
pop
50: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.builder:Ljava/lang/StringBuilder;
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.buffer:Ljava/nio/CharBuffer;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/CharSequence;)Ljava/lang/StringBuilder;
pop
51: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.nio.charset.CoderResult.isError:()Z
ifeq 52
aload 3
invokevirtual java.nio.charset.CoderResult.throwException:()V
52: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.leftover:Ljava/nio/ByteBuffer;
iconst_0
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/ByteBuffer;
pop
53: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.leftover:Ljava/nio/ByteBuffer;
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.leftover:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.capacity:()I
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/ByteBuffer;
pop
54: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.decoder:Ljava/nio/charset/CharsetDecoder;
invokevirtual java.nio.charset.CharsetDecoder.reset:()Ljava/nio/charset/CharsetDecoder;
pop
55: aload 0
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.builder:Ljava/lang/StringBuilder;
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.newline:Ljava/lang/String;
iload 1
invokestatic jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.nextLine:(Ljava/lang/StringBuilder;Ljava/lang/String;Z)Ljava/lang/String;
dup_x1
putfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.nextLine:Ljava/lang/String;
areturn
end local 3 56: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 57: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.nextLine:Ljava/lang/String;
ifnull 1
58: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 59 0 this Ljdk/internal/net/http/LineSubscriberAdapter$LineSubscription;
4 57 1 endOfInput Z
9 33 2 b Ljava/nio/ByteBuffer;
34 57 2 b Ljava/nio/ByteBuffer;
17 32 3 endofInput Z
24 32 4 res Ljava/nio/charset/CoderResult;
41 56 3 res Ljava/nio/charset/CoderResult;
Exceptions:
throws java.nio.charset.CharacterCodingException
private void loop();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=4, args_size=1
start local 0 0: goto 40
1: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.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 2: aload 1
ifnull 8
3: aload 0
iconst_1
putfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.cancelled:Z
4: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.scheduler:Ljdk/internal/net/http/common/SequentialScheduler;
invokevirtual jdk.internal.net.http.common.SequentialScheduler.stop:()V
5: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.upstream:Ljava/util/concurrent/Flow$Subscriber;
aload 1
invokeinterface java.util.concurrent.Flow$Subscriber.onError:(Ljava/lang/Throwable;)V
6: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.cf:Ljava/util/concurrent/CompletableFuture;
aload 1
invokevirtual java.util.concurrent.CompletableFuture.completeExceptionally:(Ljava/lang/Throwable;)Z
pop
7: return
8: StackMap locals: java.lang.Throwable
StackMap stack:
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.nextLine:Ljava/lang/String;
ifnonnull 9
aload 0
aload 0
invokevirtual jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.nextLine:()Ljava/lang/String;
putfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.nextLine:Ljava/lang/String;
9: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.nextLine:Ljava/lang/String;
ifnonnull 31
10: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.completed:Z
ifeq 24
11: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.scheduler:Ljdk/internal/net/http/common/SequentialScheduler;
invokevirtual jdk.internal.net.http.common.SequentialScheduler.stop:()V
12: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.leftover:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.position:()I
ifeq 22
13: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.errorRef:Ljava/util/concurrent/atomic/AtomicReference;
aconst_null
14: new java.lang.IllegalStateException
dup
15: new java.lang.StringBuilder
dup
ldc "premature end of input ("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
16: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.leftover:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.position:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
17: ldc " undecoded bytes)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
18: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
19: invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
20: invokevirtual java.util.concurrent.atomic.AtomicReference.compareAndSet:(Ljava/lang/Object;Ljava/lang/Object;)Z
pop
21: goto 40
22: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.upstream:Ljava/util/concurrent/Flow$Subscriber;
invokeinterface java.util.concurrent.Flow$Subscriber.onComplete:()V
23: return
24: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.demanded:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
lconst_0
lcmp
ifne 30
25: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.downstreamDemand:Ljdk/internal/net/http/common/Demand;
invokevirtual jdk.internal.net.http.common.Demand.isFulfilled:()Z
ifne 30
26: lconst_1
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.downstreamDemand:Ljdk/internal/net/http/common/Demand;
invokevirtual jdk.internal.net.http.common.Demand.get:()J
invokestatic java.lang.Math.max:(JJ)J
lstore 2
start local 2 27: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.demanded:Ljava/util/concurrent/atomic/AtomicLong;
lload 2
invokevirtual java.util.concurrent.atomic.AtomicLong.addAndGet:(J)J
pop2
28: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.upstreamSubscription:Ljava/util/concurrent/Flow$Subscription;
lload 2
invokeinterface java.util.concurrent.Flow$Subscription.request:(J)V
29: goto 40
end local 2 30: StackMap locals:
StackMap stack:
return
31: StackMap locals:
StackMap stack:
getstatic jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.$assertionsDisabled:Z
ifne 32
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.nextLine:Ljava/lang/String;
ifnonnull 32
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
32: StackMap locals:
StackMap stack:
getstatic jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.$assertionsDisabled:Z
ifne 34
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.newline:Ljava/lang/String;
ifnull 33
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.nextLine:Ljava/lang/String;
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.newline:Ljava/lang/String;
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 34
33: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.nextLine:Ljava/lang/String;
ldc "\n"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 34
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.nextLine:Ljava/lang/String;
ldc "\r"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 34
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
34: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.downstreamDemand:Ljdk/internal/net/http/common/Demand;
invokevirtual jdk.internal.net.http.common.Demand.tryDecrement:()Z
ifeq 39
35: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.nextLine:Ljava/lang/String;
astore 2
start local 2 36: aload 0
aconst_null
putfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.nextLine:Ljava/lang/String;
37: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.upstream:Ljava/util/concurrent/Flow$Subscriber;
aload 2
invokeinterface java.util.concurrent.Flow$Subscriber.onNext:(Ljava/lang/Object;)V
end local 2 38: goto 40
StackMap locals:
StackMap stack:
39: return
end local 1 40: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.cancelled:Z
ifeq 1
41: goto 49
StackMap locals:
StackMap stack: java.lang.Throwable
42: astore 1
start local 1 43: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.upstreamSubscription:Ljava/util/concurrent/Flow$Subscription;
invokeinterface java.util.concurrent.Flow$Subscription.cancel:()V
44: goto 48
StackMap locals: jdk.internal.net.http.LineSubscriberAdapter$LineSubscription java.lang.Throwable
StackMap stack: java.lang.Throwable
45: astore 2
46: aload 0
aload 1
invokevirtual jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.signalError:(Ljava/lang/Throwable;)V
47: aload 2
athrow
48: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.signalError:(Ljava/lang/Throwable;)V
end local 1 49: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 50 0 this Ljdk/internal/net/http/LineSubscriberAdapter$LineSubscription;
2 40 1 error Ljava/lang/Throwable;
27 30 2 incr J
36 38 2 forward Ljava/lang/String;
43 49 1 t Ljava/lang/Throwable;
Exception table:
from to target type
0 7 42 Class java.lang.Throwable
8 23 42 Class java.lang.Throwable
24 30 42 Class java.lang.Throwable
31 39 42 Class java.lang.Throwable
40 41 42 Class java.lang.Throwable
43 45 45 any
static jdk.internal.net.http.LineSubscriberAdapter$LineSubscription create(java.util.concurrent.Flow$Subscription, java.nio.charset.Charset, java.lang.String, java.util.concurrent.Flow$Subscriber<? super java.lang.String>, java.util.concurrent.CompletableFuture<?>);
descriptor: (Ljava/util/concurrent/Flow$Subscription;Ljava/nio/charset/Charset;Ljava/lang/String;Ljava/util/concurrent/Flow$Subscriber;Ljava/util/concurrent/CompletableFuture;)Ljdk/internal/net/http/LineSubscriberAdapter$LineSubscription;
flags: (0x0008) ACC_STATIC
Code:
stack=7, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: new jdk.internal.net.http.LineSubscriberAdapter$LineSubscription
dup
aload 0
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.concurrent.Flow$Subscription
1: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.nio.charset.Charset
invokevirtual java.nio.charset.Charset.newDecoder:()Ljava/nio/charset/CharsetDecoder;
2: getstatic java.nio.charset.CodingErrorAction.REPLACE:Ljava/nio/charset/CodingErrorAction;
invokevirtual java.nio.charset.CharsetDecoder.onMalformedInput:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetDecoder;
3: getstatic java.nio.charset.CodingErrorAction.REPLACE:Ljava/nio/charset/CodingErrorAction;
invokevirtual java.nio.charset.CharsetDecoder.onUnmappableCharacter:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetDecoder;
4: aload 2
5: aload 3
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.concurrent.Flow$Subscriber
6: aload 4
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.concurrent.CompletableFuture
7: invokespecial jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.<init>:(Ljava/util/concurrent/Flow$Subscription;Ljava/nio/charset/CharsetDecoder;Ljava/lang/String;Ljava/util/concurrent/Flow$Subscriber;Ljava/util/concurrent/CompletableFuture;)V
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 s Ljava/util/concurrent/Flow$Subscription;
0 8 1 charset Ljava/nio/charset/Charset;
0 8 2 lineSeparator Ljava/lang/String;
0 8 3 upstream Ljava/util/concurrent/Flow$Subscriber<-Ljava/lang/String;>;
0 8 4 cf Ljava/util/concurrent/CompletableFuture<*>;
Signature: (Ljava/util/concurrent/Flow$Subscription;Ljava/nio/charset/Charset;Ljava/lang/String;Ljava/util/concurrent/Flow$Subscriber<-Ljava/lang/String;>;Ljava/util/concurrent/CompletableFuture<*>;)Ljdk/internal/net/http/LineSubscriberAdapter$LineSubscription;
MethodParameters:
Name Flags
s
charset
lineSeparator
upstream
cf
}
SourceFile: "LineSubscriberAdapter.java"
NestHost: jdk.internal.net.http.LineSubscriberAdapter
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
final LineSubscription = jdk.internal.net.http.LineSubscriberAdapter$LineSubscription of jdk.internal.net.http.LineSubscriberAdapter