public class org.graalvm.compiler.jtt.optimize.UnsafeDeopt extends org.graalvm.compiler.jtt.JTTTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.jtt.optimize.UnsafeDeopt
super_class: org.graalvm.compiler.jtt.JTTTest
{
private static final sun.misc.Unsafe unsafe;
descriptor: Lsun/misc/Unsafe;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=1, args_size=0
0: ldc Lsun/misc/Unsafe;
ldc "theUnsafe"
invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
astore 0
start local 0 1: aload 0
iconst_1
invokevirtual java.lang.reflect.Field.setAccessible:(Z)V
2: aload 0
aconst_null
invokevirtual java.lang.reflect.Field.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.misc.Unsafe
putstatic org.graalvm.compiler.jtt.optimize.UnsafeDeopt.unsafe:Lsun/misc/Unsafe;
end local 0 3: goto 6
StackMap locals:
StackMap stack: java.lang.Exception
4: astore 0
start local 0 5: new java.lang.Error
dup
aload 0
invokespecial java.lang.Error.<init>:(Ljava/lang/Throwable;)V
athrow
end local 0 6: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
1 3 0 unsafeField Ljava/lang/reflect/Field;
5 6 0 e Ljava/lang/Exception;
Exception table:
from to target type
0 3 4 Class java.lang.Exception
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.graalvm.compiler.jtt.JTTTest.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/jtt/optimize/UnsafeDeopt;
public static int readWriteReadUnsafe(long, int);
descriptor: (JI)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 2 0: getstatic org.graalvm.compiler.jtt.optimize.UnsafeDeopt.unsafe:Lsun/misc/Unsafe;
lload 0
invokevirtual sun.misc.Unsafe.getInt:(J)I
istore 3
start local 3 1: iload 3
ifeq 3
2: iload 2
ineg
ireturn
3: StackMap locals: int
StackMap stack:
getstatic org.graalvm.compiler.jtt.optimize.UnsafeDeopt.unsafe:Lsun/misc/Unsafe;
lload 0
iload 2
invokevirtual sun.misc.Unsafe.putInt:(JI)V
4: iload 2
bipush 10
if_icmple 8
5: iload 2
bipush 20
if_icmple 7
6: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.deoptimize:()V
7: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.jtt.optimize.UnsafeDeopt.unsafe:Lsun/misc/Unsafe;
lload 0
ldc 4
ladd
iload 2
invokevirtual sun.misc.Unsafe.putInt:(JI)V
8: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.jtt.optimize.UnsafeDeopt.unsafe:Lsun/misc/Unsafe;
lload 0
invokevirtual sun.misc.Unsafe.getInt:(J)I
ireturn
end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 addr J
0 9 2 m I
1 9 3 original I
MethodParameters:
Name Flags
addr
m
public static int readWriteReadByteBuffer(java.nio.ByteBuffer, int);
descriptor: (Ljava/nio/ByteBuffer;I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
iconst_0
invokevirtual java.nio.ByteBuffer.getInt:(I)I
istore 2
start local 2 1: iload 2
ifeq 3
2: iload 1
ineg
ireturn
3: StackMap locals: int
StackMap stack:
aload 0
iconst_0
iload 1
invokevirtual java.nio.ByteBuffer.putInt:(II)Ljava/nio/ByteBuffer;
pop
4: iload 1
bipush 10
if_icmple 8
5: iload 1
bipush 20
if_icmple 8
6: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.deoptimize:()V
7: aload 0
iconst_4
iload 1
invokevirtual java.nio.ByteBuffer.putInt:(II)Ljava/nio/ByteBuffer;
pop
8: StackMap locals:
StackMap stack:
aload 0
iconst_0
invokevirtual java.nio.ByteBuffer.getInt:(I)I
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 buffer Ljava/nio/ByteBuffer;
0 9 1 m I
1 9 2 original I
MethodParameters:
Name Flags
buffer
m
public long createBuffer();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=1
start local 0 0: getstatic org.graalvm.compiler.jtt.optimize.UnsafeDeopt.unsafe:Lsun/misc/Unsafe;
ldc 32
invokevirtual sun.misc.Unsafe.allocateMemory:(J)J
lstore 1
start local 1 1: getstatic org.graalvm.compiler.jtt.optimize.UnsafeDeopt.unsafe:Lsun/misc/Unsafe;
lload 1
ldc 32
iconst_0
invokevirtual sun.misc.Unsafe.setMemory:(JJB)V
2: lload 1
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/compiler/jtt/optimize/UnsafeDeopt;
1 3 1 addr J
public void disposeBuffer(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: getstatic org.graalvm.compiler.jtt.optimize.UnsafeDeopt.unsafe:Lsun/misc/Unsafe;
lload 1
invokevirtual sun.misc.Unsafe.freeMemory:(J)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/jtt/optimize/UnsafeDeopt;
0 2 1 addr J
MethodParameters:
Name Flags
addr
public void testUnsafe();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problems: \n\tTest cannot be resolved to a type\n\tAssumptionViolatedException cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/jtt/optimize/UnsafeDeopt;
RuntimeInvisibleAnnotations:
Test()
public void testByteBuffer();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problems: \n\tTest cannot be resolved to a type\n\tAssumptionViolatedException cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/jtt/optimize/UnsafeDeopt;
RuntimeInvisibleAnnotations:
Test()
}
SourceFile: "UnsafeDeopt.java"