
import java.lang.reflect.Field;
import sun.misc.Unsafe;

public class UnsafeTest {
    
    public static void main(String[] args) throws Exception {
        //Unsafe unsafe = Unsafe.getUnsafe();
        Field f = Unsafe.class.getDeclaredField("theUnsafe");
        f.setAccessible(true);
        Unsafe unsafe = (Unsafe) f.get(null);

        System.out.println("OK!");
    }
    
}

@@ -361,13 +361,605 @@
 tln(
-%22OK!%22
+unsafe.arrayBaseOffset(new int%5B0%5D.getClass()));%0A        System.out.println(unsafe.arrayBaseOffset(new long%5B0%5D.getClass()));%0A        System.out.println(unsafe.arrayBaseOffset(new Object%5B0%5D.getClass()));%0A        System.out.println(unsafe.arrayBaseOffset(new Class%3C?%3E%5B0%5D.getClass()));%0A        %0A        System.out.println(unsafe.arrayIndexScale(new int%5B0%5D.getClass()));%0A        System.out.println(unsafe.arrayIndexScale(new long%5B0%5D.getClass()));%0A        System.out.println(unsafe.arrayIndexScale(new Object%5B0%5D.getClass()));%0A        System.out.println(unsafe.arrayIndexScale(new Class%3C?%3E%5B0%5D.getClass())
 );%0A 

test Unsafe