public final class org.jruby.util.unsafe.UnsafeHolder
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.jruby.util.unsafe.UnsafeHolder
super_class: java.lang.Object
{
public static final sun.misc.Unsafe U;
descriptor: Lsun/misc/Unsafe;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic org.jruby.util.unsafe.UnsafeHolder.loadUnsafe:()Lsun/misc/Unsafe;
putstatic org.jruby.util.unsafe.UnsafeHolder.U:Lsun/misc/Unsafe;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/unsafe/UnsafeHolder;
private static sun.misc.Unsafe loadUnsafe();
descriptor: ()Lsun/misc/Unsafe;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=0
0: ldc "sun.misc.Unsafe"
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
astore 0
start local 0 1: aload 0
ldc "theUnsafe"
invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
astore 1
start local 1 2: aload 1
iconst_1
invokevirtual java.lang.reflect.Field.setAccessible:(Z)V
3: aload 1
aconst_null
invokevirtual java.lang.reflect.Field.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.misc.Unsafe
4: areturn
end local 1 end local 0 5: StackMap locals:
StackMap stack: java.lang.Exception
pop
6: aconst_null
areturn
7: StackMap locals:
StackMap stack: java.lang.NoClassDefFoundError
pop
8: aconst_null
areturn
LocalVariableTable:
Start End Slot Name Signature
1 5 0 unsafeClass Ljava/lang/Class;
2 5 1 f Ljava/lang/reflect/Field;
Exception table:
from to target type
0 4 5 Class java.lang.Exception
0 4 7 Class java.lang.NoClassDefFoundError
public static long fieldOffset(java.lang.Class, java.lang.String);
descriptor: (Ljava/lang/Class;Ljava/lang/String;)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.jruby.util.unsafe.UnsafeHolder.U:Lsun/misc/Unsafe;
ifnonnull 2
1: ldc -1
lreturn
2: StackMap locals:
StackMap stack:
getstatic org.jruby.util.unsafe.UnsafeHolder.U:Lsun/misc/Unsafe;
aload 0
aload 1
invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
invokevirtual sun.misc.Unsafe.objectFieldOffset:(Ljava/lang/reflect/Field;)J
3: lreturn
4: StackMap locals:
StackMap stack: java.lang.Exception
pop
5: ldc -1
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 clazz Ljava/lang/Class;
0 6 1 name Ljava/lang/String;
Exception table:
from to target type
2 3 4 Class java.lang.Exception
MethodParameters:
Name Flags
clazz
name
}
SourceFile: "UnsafeHolder.java"