class jdk.incubator.http.HttpClientImpl$SelectorAttachment
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.incubator.http.HttpClientImpl$SelectorAttachment
super_class: java.lang.Object
{
private final java.nio.channels.SelectableChannel chan;
descriptor: Ljava/nio/channels/SelectableChannel;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.nio.channels.Selector selector;
descriptor: Ljava/nio/channels/Selector;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Set<jdk.incubator.http.AsyncEvent> pending;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<Ljdk/incubator/http/AsyncEvent;>;
private static final java.lang.System$Logger debug;
descriptor: Ljava/lang/System$Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private int interestOps;
descriptor: I
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc "SelectorAttachment"
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic get(Ljava/lang/String;)Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
java/lang/String.toString()Ljava/lang/String; (5)
()Ljava/lang/String;
getstatic jdk.incubator.http.HttpClientImpl.DEBUG:Z
invokestatic jdk.incubator.http.internal.common.Utils.getDebugLogger:(Ljava/util/function/Supplier;Z)Ljava/lang/System$Logger;
1: putstatic jdk.incubator.http.HttpClientImpl$SelectorAttachment.debug:Ljava/lang/System$Logger;
2: return
LocalVariableTable:
Start End Slot Name Signature
void <init>(java.nio.channels.SelectableChannel, java.nio.channels.Selector);
descriptor: (Ljava/nio/channels/SelectableChannel;Ljava/nio/channels/Selector;)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield jdk.incubator.http.HttpClientImpl$SelectorAttachment.pending:Ljava/util/Set;
2: aload 0
aload 1
putfield jdk.incubator.http.HttpClientImpl$SelectorAttachment.chan:Ljava/nio/channels/SelectableChannel;
3: aload 0
aload 2
putfield jdk.incubator.http.HttpClientImpl$SelectorAttachment.selector:Ljava/nio/channels/Selector;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/incubator/http/HttpClientImpl$SelectorAttachment;
0 5 1 chan Ljava/nio/channels/SelectableChannel;
0 5 2 selector Ljava/nio/channels/Selector;
MethodParameters:
Name Flags
chan
selector
void register(jdk.incubator.http.AsyncEvent);
descriptor: (Ljdk/incubator/http/AsyncEvent;)V
flags: (0x0000)
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual jdk.incubator.http.AsyncEvent.interestOps:()I
istore 2
start local 2 1: aload 0
getfield jdk.incubator.http.HttpClientImpl$SelectorAttachment.interestOps:I
iload 2
iand
iload 2
if_icmpeq 2
iconst_1
goto 3
StackMap locals: int
StackMap stack:
2: iconst_0
StackMap locals:
StackMap stack: int
3: istore 3
start local 3 4: aload 0
dup
getfield jdk.incubator.http.HttpClientImpl$SelectorAttachment.interestOps:I
iload 2
ior
putfield jdk.incubator.http.HttpClientImpl$SelectorAttachment.interestOps:I
5: aload 0
getfield jdk.incubator.http.HttpClientImpl$SelectorAttachment.pending:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
6: iload 3
ifeq 8
7: aload 0
getfield jdk.incubator.http.HttpClientImpl$SelectorAttachment.chan:Ljava/nio/channels/SelectableChannel;
aload 0
getfield jdk.incubator.http.HttpClientImpl$SelectorAttachment.selector:Ljava/nio/channels/Selector;
aload 0
getfield jdk.incubator.http.HttpClientImpl$SelectorAttachment.interestOps:I
aload 0
invokevirtual java.nio.channels.SelectableChannel.register:(Ljava/nio/channels/Selector;ILjava/lang/Object;)Ljava/nio/channels/SelectionKey;
pop
8: StackMap locals: int
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/incubator/http/HttpClientImpl$SelectorAttachment;
0 9 1 e Ljdk/incubator/http/AsyncEvent;
1 9 2 newOps I
4 9 3 reRegister Z
Exceptions:
throws java.nio.channels.ClosedChannelException
MethodParameters:
Name Flags
e
java.util.stream.Stream<jdk.incubator.http.AsyncEvent> events(int);
descriptor: (I)Ljava/util/stream/Stream;
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.HttpClientImpl$SelectorAttachment.pending:Ljava/util/Set;
invokeinterface java.util.Set.stream:()Ljava/util/stream/Stream;
1: iload 1
invokedynamic test(I)Ljava/util/function/Predicate;
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;)Z
jdk/incubator/http/HttpClientImpl$SelectorAttachment.lambda$1(ILjdk/incubator/http/AsyncEvent;)Z (6)
(Ljdk/incubator/http/AsyncEvent;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
2: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/incubator/http/HttpClientImpl$SelectorAttachment;
0 3 1 interestOps I
Signature: (I)Ljava/util/stream/Stream<Ljdk/incubator/http/AsyncEvent;>;
MethodParameters:
Name Flags
interestOps
void resetInterestOps(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: aload 0
getfield jdk.incubator.http.HttpClientImpl$SelectorAttachment.pending:Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
start local 3 2: goto 12
3: StackMap locals: int java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.incubator.http.AsyncEvent
astore 4
start local 4 4: aload 4
invokevirtual jdk.incubator.http.AsyncEvent.interestOps:()I
istore 5
start local 5 5: aload 4
invokevirtual jdk.incubator.http.AsyncEvent.repeating:()Z
ifeq 8
6: iload 2
iload 5
ior
istore 2
7: goto 12
8: StackMap locals: jdk.incubator.http.AsyncEvent int
StackMap stack:
iload 5
iload 1
iand
ifeq 11
9: aload 3
invokeinterface java.util.Iterator.remove:()V
10: goto 12
11: StackMap locals:
StackMap stack:
iload 2
iload 5
ior
istore 2
end local 5 end local 4 12: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
13: aload 0
iload 2
putfield jdk.incubator.http.HttpClientImpl$SelectorAttachment.interestOps:I
14: aload 0
getfield jdk.incubator.http.HttpClientImpl$SelectorAttachment.chan:Ljava/nio/channels/SelectableChannel;
aload 0
getfield jdk.incubator.http.HttpClientImpl$SelectorAttachment.selector:Ljava/nio/channels/Selector;
invokevirtual java.nio.channels.SelectableChannel.keyFor:(Ljava/nio/channels/Selector;)Ljava/nio/channels/SelectionKey;
astore 4
start local 4 15: iload 2
ifne 18
aload 0
getfield jdk.incubator.http.HttpClientImpl$SelectorAttachment.pending:Ljava/util/Set;
invokeinterface java.util.Set.isEmpty:()Z
ifeq 18
16: aload 4
invokevirtual java.nio.channels.SelectionKey.cancel:()V
17: goto 23
18: StackMap locals: java.nio.channels.SelectionKey
StackMap stack:
aload 4
iload 2
invokevirtual java.nio.channels.SelectionKey.interestOps:(I)Ljava/nio/channels/SelectionKey;
pop
19: goto 23
StackMap locals:
StackMap stack: java.nio.channels.CancelledKeyException
20: astore 5
start local 5 21: getstatic jdk.incubator.http.HttpClientImpl$SelectorAttachment.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
new java.lang.StringBuilder
dup
ldc "key cancelled for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield jdk.incubator.http.HttpClientImpl$SelectorAttachment.chan:Ljava/nio/channels/SelectableChannel;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;)V
22: aload 0
aload 5
invokevirtual jdk.incubator.http.HttpClientImpl$SelectorAttachment.abortPending:(Ljava/lang/Throwable;)V
end local 5 23: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Ljdk/incubator/http/HttpClientImpl$SelectorAttachment;
0 24 1 interestOps I
1 24 2 newOps I
2 24 3 itr Ljava/util/Iterator<Ljdk/incubator/http/AsyncEvent;>;
4 12 4 event Ljdk/incubator/http/AsyncEvent;
5 12 5 evops I
15 24 4 key Ljava/nio/channels/SelectionKey;
21 23 5 x Ljava/nio/channels/CancelledKeyException;
Exception table:
from to target type
18 19 20 Class java.nio.channels.CancelledKeyException
MethodParameters:
Name Flags
interestOps
void abortPending(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0000)
Code:
stack=2, locals=8, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.HttpClientImpl$SelectorAttachment.pending:Ljava/util/Set;
invokeinterface java.util.Set.isEmpty:()Z
ifne 9
1: aload 0
getfield jdk.incubator.http.HttpClientImpl$SelectorAttachment.pending:Ljava/util/Set;
iconst_0
anewarray jdk.incubator.http.AsyncEvent
invokeinterface java.util.Set.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast jdk.incubator.http.AsyncEvent[]
astore 2
start local 2 2: aload 0
getfield jdk.incubator.http.HttpClientImpl$SelectorAttachment.pending:Ljava/util/Set;
invokeinterface java.util.Set.clear:()V
3: aload 1
invokestatic jdk.incubator.http.internal.common.Utils.getIOException:(Ljava/lang/Throwable;)Ljava/io/IOException;
astore 3
start local 3 4: aload 2
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 8
StackMap locals: jdk.incubator.http.HttpClientImpl$SelectorAttachment java.lang.Throwable jdk.incubator.http.AsyncEvent[] java.io.IOException top int int jdk.incubator.http.AsyncEvent[]
StackMap stack:
5: aload 7
iload 5
aaload
astore 4
start local 4 6: aload 4
aload 3
invokevirtual jdk.incubator.http.AsyncEvent.abort:(Ljava/io/IOException;)V
end local 4 7: iinc 5 1
StackMap locals:
StackMap stack:
8: iload 5
iload 6
if_icmplt 5
end local 3 end local 2 9: StackMap locals: jdk.incubator.http.HttpClientImpl$SelectorAttachment java.lang.Throwable
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/incubator/http/HttpClientImpl$SelectorAttachment;
0 10 1 x Ljava/lang/Throwable;
2 9 2 evts [Ljdk/incubator/http/AsyncEvent;
4 9 3 io Ljava/io/IOException;
6 7 4 event Ljdk/incubator/http/AsyncEvent;
MethodParameters:
Name Flags
x
private static boolean lambda$1(int, jdk.incubator.http.AsyncEvent);
descriptor: (ILjdk/incubator/http/AsyncEvent;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 1
invokevirtual jdk.incubator.http.AsyncEvent.interestOps:()I
iload 0
iand
ifeq 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ireturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 3 1 ev Ljdk/incubator/http/AsyncEvent;
}
SourceFile: "HttpClientImpl.java"
NestHost: jdk.incubator.http.HttpClientImpl
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
private SelectorAttachment = jdk.incubator.http.HttpClientImpl$SelectorAttachment of jdk.incubator.http.HttpClientImpl