class sun.nio.ch.NativeThreadSet
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.nio.ch.NativeThreadSet
super_class: java.lang.Object
{
private long[] elts;
descriptor: [J
flags: (0x0002) ACC_PRIVATE
private int used;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private boolean waitingToEmpty;
descriptor: Z
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 Lsun/nio/ch/NativeThreadSet;
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 sun.nio.ch.NativeThreadSet.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield sun.nio.ch.NativeThreadSet.used:I
2: aload 0
iload 1
newarray 11
putfield sun.nio.ch.NativeThreadSet.elts:[J
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/ch/NativeThreadSet;
0 4 1 n I
MethodParameters:
Name Flags
n
int add();
descriptor: ()I
flags: (0x0000)
Code:
stack=5, locals=8, args_size=1
start local 0 0: invokestatic sun.nio.ch.NativeThread.current:()J
lstore 1
start local 1 1: lload 1
lconst_0
lcmp
ifne 3
2: ldc -1
lstore 1
3: StackMap locals: long
StackMap stack:
aload 0
dup
astore 3
monitorenter
4: iconst_0
istore 4
start local 4 5: aload 0
getfield sun.nio.ch.NativeThreadSet.used:I
aload 0
getfield sun.nio.ch.NativeThreadSet.elts:[J
arraylength
if_icmplt 12
6: aload 0
getfield sun.nio.ch.NativeThreadSet.elts:[J
arraylength
istore 5
start local 5 7: iload 5
iconst_2
imul
istore 6
start local 6 8: iload 6
newarray 11
astore 7
start local 7 9: aload 0
getfield sun.nio.ch.NativeThreadSet.elts:[J
iconst_0
aload 7
iconst_0
iload 5
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
10: aload 0
aload 7
putfield sun.nio.ch.NativeThreadSet.elts:[J
11: iload 5
istore 4
end local 7 end local 6 end local 5 12: StackMap locals: sun.nio.ch.NativeThreadSet int
StackMap stack:
iload 4
istore 5
start local 5 13: goto 20
14: StackMap locals: int
StackMap stack:
aload 0
getfield sun.nio.ch.NativeThreadSet.elts:[J
iload 5
laload
lconst_0
lcmp
ifne 19
15: aload 0
getfield sun.nio.ch.NativeThreadSet.elts:[J
iload 5
lload 1
lastore
16: aload 0
dup
getfield sun.nio.ch.NativeThreadSet.used:I
iconst_1
iadd
putfield sun.nio.ch.NativeThreadSet.used:I
17: iload 5
aload 3
monitorexit
18: ireturn
19: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
20: iload 5
aload 0
getfield sun.nio.ch.NativeThreadSet.elts:[J
arraylength
if_icmplt 14
end local 5 21: getstatic sun.nio.ch.NativeThreadSet.$assertionsDisabled:Z
ifne 22
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
22: StackMap locals:
StackMap stack:
aload 3
monitorexit
23: iconst_m1
ireturn
end local 4 24: StackMap locals: sun.nio.ch.NativeThreadSet long sun.nio.ch.NativeThreadSet
StackMap stack: java.lang.Throwable
aload 3
monitorexit
25: athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Lsun/nio/ch/NativeThreadSet;
1 26 1 th J
5 24 4 start I
7 12 5 on I
8 12 6 nn I
9 12 7 nelts [J
13 21 5 i I
Exception table:
from to target type
4 18 24 any
19 23 24 any
24 25 24 any
void remove(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
dup
astore 2
monitorenter
1: aload 0
getfield sun.nio.ch.NativeThreadSet.elts:[J
iload 1
lconst_0
lastore
2: aload 0
dup
getfield sun.nio.ch.NativeThreadSet.used:I
iconst_1
isub
putfield sun.nio.ch.NativeThreadSet.used:I
3: aload 0
getfield sun.nio.ch.NativeThreadSet.used:I
ifne 5
aload 0
getfield sun.nio.ch.NativeThreadSet.waitingToEmpty:Z
ifeq 5
4: aload 0
invokevirtual java.lang.Object.notifyAll:()V
5: StackMap locals: sun.nio.ch.NativeThreadSet
StackMap stack:
aload 2
monitorexit
6: goto 9
StackMap locals:
StackMap stack: java.lang.Throwable
7: aload 2
monitorexit
8: athrow
9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/nio/ch/NativeThreadSet;
0 10 1 i I
Exception table:
from to target type
1 6 7 any
7 8 7 any
MethodParameters:
Name Flags
i
void signalAndWait();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=7, args_size=1
start local 0 0: aload 0
dup
astore 1
monitorenter
1: aload 0
getfield sun.nio.ch.NativeThreadSet.used:I
istore 2
start local 2 2: aload 0
getfield sun.nio.ch.NativeThreadSet.elts:[J
arraylength
istore 3
start local 3 3: iconst_0
istore 4
start local 4 4: goto 13
5: StackMap locals: sun.nio.ch.NativeThreadSet sun.nio.ch.NativeThreadSet int int int
StackMap stack:
aload 0
getfield sun.nio.ch.NativeThreadSet.elts:[J
iload 4
laload
lstore 5
start local 5 6: lload 5
lconst_0
lcmp
ifne 8
7: goto 12
8: StackMap locals: long
StackMap stack:
lload 5
ldc -1
lcmp
ifeq 10
9: lload 5
invokestatic sun.nio.ch.NativeThread.signal:(J)V
10: StackMap locals:
StackMap stack:
iinc 2 -1
iload 2
ifne 12
11: goto 14
end local 5 12: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
13: iload 4
iload 3
if_icmplt 5
end local 4 14: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield sun.nio.ch.NativeThreadSet.waitingToEmpty:Z
15: iconst_0
istore 4
start local 4 16: goto 21
17: StackMap locals: int
StackMap stack:
aload 0
invokevirtual java.lang.Object.wait:()V
18: goto 21
StackMap locals:
StackMap stack: java.lang.InterruptedException
19: pop
20: iconst_1
istore 4
21: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.NativeThreadSet.used:I
ifgt 17
22: iload 4
ifeq 24
23: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.interrupt:()V
end local 4 end local 3 end local 2 24: StackMap locals:
StackMap stack:
aload 1
monitorexit
25: goto 28
StackMap locals:
StackMap stack: java.lang.Throwable
26: aload 1
monitorexit
27: athrow
28: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lsun/nio/ch/NativeThreadSet;
2 24 2 u I
3 24 3 n I
4 14 4 i I
6 12 5 th J
16 24 4 interrupted Z
Exception table:
from to target type
17 18 19 Class java.lang.InterruptedException
1 25 26 any
26 27 26 any
}
SourceFile: "NativeThreadSet.java"