package sun.misc;

import java.lang.reflect.Field;


// Hack to compile on Java 9 with `--release 8`
public final class Unsafe {
  public static Unsafe getUnsafe() {
    return null;
  }

  public native long objectFieldOffset(Field f);
  
  public native int arrayBaseOffset(Class<?> clazz);
  
  public native int arrayIndexScale(Class<?> clazz);

  public native Object getObject(Object o, long offset);

  public native void putObject(Object o, long offset, Object value);

  public native void putByte(Object o, long offset, byte value);

  public native void putShort(Object o, long offset, short value);
  
  public native void putInt(Object o, long offset, int value);
  
  public native long getLong(Object o, long offset);

  public native void putLong(Object o, long offset, long value);

  public native double getDouble(Object o, long offset);

  public native void putDouble(Object o, long offset, double value);
  
  public native void copyMemory(Object from, long offset, Object to, long offset2, long nBytes);
}

@@ -1020,10 +1020,113 @@
 Bytes);%0A
+  %0A  public native boolean compareAndSwapLong(java.lang.Object arg0, long arg1, long arg2, long arg3);%0A
 %7D%0A

Add Missing Unsafe Method