class org.graalvm.compiler.hotspot.test.ReservedStackAccessTest$ReentrantLockTest
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.graalvm.compiler.hotspot.test.ReservedStackAccessTest$ReentrantLockTest
super_class: java.lang.Object
{
private java.util.concurrent.locks.ReentrantLock[] lockArray;
descriptor: [Ljava/util/concurrent/locks/ReentrantLock;
flags: (0x0002) ACC_PRIVATE
private static final int LOCK_ARRAY_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 8192
private boolean stackOverflowErrorReceived;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
java.lang.StackOverflowError soe;
descriptor: Ljava/lang/StackOverflowError;
flags: (0x0000)
int index;
descriptor: I
flags: (0x0000)
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield org.graalvm.compiler.hotspot.test.ReservedStackAccessTest$ReentrantLockTest.soe:Ljava/lang/StackOverflowError;
2: aload 0
iconst_m1
putfield org.graalvm.compiler.hotspot.test.ReservedStackAccessTest$ReentrantLockTest.index:I
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/compiler/hotspot/test/ReservedStackAccessTest$ReentrantLockTest;
public void initialize();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
sipush 8192
anewarray java.util.concurrent.locks.ReentrantLock
putfield org.graalvm.compiler.hotspot.test.ReservedStackAccessTest$ReentrantLockTest.lockArray:[Ljava/util/concurrent/locks/ReentrantLock;
1: iconst_0
istore 1
start local 1 2: goto 5
3: StackMap locals: int
StackMap stack:
aload 0
getfield org.graalvm.compiler.hotspot.test.ReservedStackAccessTest$ReentrantLockTest.lockArray:[Ljava/util/concurrent/locks/ReentrantLock;
iload 1
new java.util.concurrent.locks.ReentrantLock
dup
invokespecial java.util.concurrent.locks.ReentrantLock.<init>:()V
aastore
4: iinc 1 1
StackMap locals:
StackMap stack:
5: iload 1
sipush 8192
if_icmplt 3
end local 1 6: aload 0
iconst_0
putfield org.graalvm.compiler.hotspot.test.ReservedStackAccessTest$ReentrantLockTest.stackOverflowErrorReceived:Z
7: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/graalvm/compiler/hotspot/test/ReservedStackAccessTest$ReentrantLockTest;
2 6 1 i I
public java.lang.String getResult();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
getfield org.graalvm.compiler.hotspot.test.ReservedStackAccessTest$ReentrantLockTest.stackOverflowErrorReceived:Z
ifne 2
1: ldc "ERROR: Not conclusive test: no StackOverflowError received"
areturn
2: StackMap locals:
StackMap stack:
iconst_0
istore 1
start local 1 3: goto 12
4: StackMap locals: int
StackMap stack:
aload 0
getfield org.graalvm.compiler.hotspot.test.ReservedStackAccessTest$ReentrantLockTest.lockArray:[Ljava/util/concurrent/locks/ReentrantLock;
iload 1
aaload
invokevirtual java.util.concurrent.locks.ReentrantLock.isLocked:()Z
ifeq 11
5: aload 0
getfield org.graalvm.compiler.hotspot.test.ReservedStackAccessTest$ReentrantLockTest.lockArray:[Ljava/util/concurrent/locks/ReentrantLock;
iload 1
aaload
invokevirtual java.util.concurrent.locks.ReentrantLock.isHeldByCurrentThread:()Z
ifne 11
6: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 2
start local 2 7: aload 2
ldc "FAILED: ReentrantLock "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
8: aload 2
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
pop
9: aload 2
ldc " looks corrupted"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
10: aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 2 11: StackMap locals:
StackMap stack:
iinc 1 1
StackMap locals:
StackMap stack:
12: iload 1
sipush 8192
if_icmplt 4
end local 1 13: ldc "PASSED"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/graalvm/compiler/hotspot/test/ReservedStackAccessTest$ReentrantLockTest;
3 13 1 i I
7 11 2 s Ljava/lang/StringBuilder;
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
iconst_0
invokevirtual org.graalvm.compiler.hotspot.test.ReservedStackAccessTest$ReentrantLockTest.lockAndCall:(I)V
1: goto 5
StackMap locals:
StackMap stack: java.lang.StackOverflowError
2: astore 1
start local 1 3: aload 0
aload 1
putfield org.graalvm.compiler.hotspot.test.ReservedStackAccessTest$ReentrantLockTest.soe:Ljava/lang/StackOverflowError;
4: aload 0
iconst_1
putfield org.graalvm.compiler.hotspot.test.ReservedStackAccessTest$ReentrantLockTest.stackOverflowErrorReceived:Z
end local 1 5: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/graalvm/compiler/hotspot/test/ReservedStackAccessTest$ReentrantLockTest;
3 5 1 e Ljava/lang/StackOverflowError;
Exception table:
from to target type
0 1 2 Class java.lang.StackOverflowError
private void lockAndCall(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.graalvm.compiler.hotspot.test.ReservedStackAccessTest$ReentrantLockTest.index:I
1: iload 1
sipush 8192
if_icmpge 4
2: aload 0
getfield org.graalvm.compiler.hotspot.test.ReservedStackAccessTest$ReentrantLockTest.lockArray:[Ljava/util/concurrent/locks/ReentrantLock;
iload 1
aaload
invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
3: aload 0
iload 1
iconst_1
iadd
invokevirtual org.graalvm.compiler.hotspot.test.ReservedStackAccessTest$ReentrantLockTest.lockAndCall:(I)V
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/graalvm/compiler/hotspot/test/ReservedStackAccessTest$ReentrantLockTest;
0 5 1 i I
MethodParameters:
Name Flags
i
}
SourceFile: "ReservedStackAccessTest.java"
NestHost: org.graalvm.compiler.hotspot.test.ReservedStackAccessTest
InnerClasses:
ReentrantLockTest = org.graalvm.compiler.hotspot.test.ReservedStackAccessTest$ReentrantLockTest of org.graalvm.compiler.hotspot.test.ReservedStackAccessTest