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
synchronized void signalAndWait();
descriptor: ()V
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=4, locals=7, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: goto 25
2: StackMap locals: int
StackMap stack:
aload 0
getfield sun.nio.ch.NativeThreadSet.used:I
istore 2
start local 2 3: aload 0
getfield sun.nio.ch.NativeThreadSet.elts:[J
arraylength
istore 3
start local 3 4: iconst_0
istore 4
start local 4 5: goto 14
6: StackMap locals: int int int
StackMap stack:
aload 0
getfield sun.nio.ch.NativeThreadSet.elts:[J
iload 4
laload
lstore 5
start local 5 7: lload 5
lconst_0
lcmp
ifne 9
8: goto 13
9: StackMap locals: long
StackMap stack:
lload 5
ldc -1
lcmp
ifeq 11
10: lload 5
invokestatic sun.nio.ch.NativeThread.signal:(J)V
11: StackMap locals:
StackMap stack:
iinc 2 -1
iload 2
ifne 13
12: goto 15
end local 5 13: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
14: iload 4
iload 3
if_icmplt 6
end local 4 15: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield sun.nio.ch.NativeThreadSet.waitingToEmpty:Z
16: aload 0
ldc 50
invokevirtual java.lang.Object.wait:(J)V
17: goto 24
StackMap locals:
StackMap stack: java.lang.InterruptedException
18: pop
19: iconst_1
istore 1
20: aload 0
iconst_0
putfield sun.nio.ch.NativeThreadSet.waitingToEmpty:Z
goto 25
21: StackMap locals:
StackMap stack: java.lang.Throwable
astore 4
22: aload 0
iconst_0
putfield sun.nio.ch.NativeThreadSet.waitingToEmpty:Z
23: aload 4
athrow
24: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield sun.nio.ch.NativeThreadSet.waitingToEmpty:Z
end local 3 end local 2 25: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.NativeThreadSet.used:I
ifgt 2
26: iload 1
ifeq 28
27: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.interrupt:()V
28: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lsun/nio/ch/NativeThreadSet;
1 29 1 interrupted Z
3 25 2 u I
4 25 3 n I
5 15 4 i I
7 13 5 th J
Exception table:
from to target type
16 17 18 Class java.lang.InterruptedException
16 20 21 any
}
SourceFile: "NativeThreadSet.java"