3699 private native long allocateMemory0(long bytes); 3700 private native long reallocateMemory0(long address, long bytes); 3701 private native void freeMemory0(long address); 3702 private native void setMemory0(Object o, long offset, long bytes, byte value); 3703 @HotSpotIntrinsicCandidate 3704 private native void copyMemory0(Object srcBase, long srcOffset, Object destBase, long destOffset, long bytes); 3705 private native void copySwapMemory0(Object srcBase, long srcOffset, Object destBase, long destOffset, long bytes, long elemSize); 3706 private native long objectFieldOffset0(Field f); 3707 private native long objectFieldOffset1(Class<?> c, String name); 3708 private native long staticFieldOffset0(Field f); 3709 private native Object staticFieldBase0(Field f); 3710 private native boolean shouldBeInitialized0(Class<?> c); 3711 private native void ensureClassInitialized0(Class<?> c); 3712 private native int arrayBaseOffset0(Class<?> arrayClass); 3713 private native int arrayIndexScale0(Class<?> arrayClass); 3714 private native int addressSize0(); 3715 private native Class<?> defineAnonymousClass0(Class<?> hostClass, byte[] data, Object[] cpPatches); 3716 private native int getLoadAverage0(double[] loadavg, int nelems); 3717 private native boolean unalignedAccess0(); 3718 private native boolean isBigEndian0(); 3719 } | 3699 private native long allocateMemory0(long bytes); 3700 private native long reallocateMemory0(long address, long bytes); 3701 private native void freeMemory0(long address); 3702 private native void setMemory0(Object o, long offset, long bytes, byte value); 3703 @HotSpotIntrinsicCandidate 3704 private native void copyMemory0(Object srcBase, long srcOffset, Object destBase, long destOffset, long bytes); 3705 private native void copySwapMemory0(Object srcBase, long srcOffset, Object destBase, long destOffset, long bytes, long elemSize); 3706 private native long objectFieldOffset0(Field f); 3707 private native long objectFieldOffset1(Class<?> c, String name); 3708 private native long staticFieldOffset0(Field f); 3709 private native Object staticFieldBase0(Field f); 3710 private native boolean shouldBeInitialized0(Class<?> c); 3711 private native void ensureClassInitialized0(Class<?> c); 3712 private native int arrayBaseOffset0(Class<?> arrayClass); 3713 private native int arrayIndexScale0(Class<?> arrayClass); 3714 private native int addressSize0(); 3715 private native Class<?> defineAnonymousClass0(Class<?> hostClass, byte[] data, Object[] cpPatches); 3716 private native int getLoadAverage0(double[] loadavg, int nelems); 3717 private native boolean unalignedAccess0(); 3718 private native boolean isBigEndian0(); 3719 3720 3721 // The following deprecated methods are used by JSR 166. 3722 3723 @Deprecated(since="12", forRemoval=true) 3724 public final Object getObject(Object o, long offset) { 3725 return getReference(o, offset); 3726 } 3727 @Deprecated(since="12", forRemoval=true) 3728 public final Object getObjectVolatile(Object o, long offset) { 3729 return getReferenceVolatile(o, offset); 3730 } 3731 @Deprecated(since="12", forRemoval=true) 3732 public final Object getObjectAcquire(Object o, long offset) { 3733 return getReferenceAcquire(o, offset); 3734 } 3735 @Deprecated(since="12", forRemoval=true) 3736 public final Object getObjectOpaque(Object o, long offset) { 3737 return getReferenceOpaque(o, offset); 3738 } 3739 3740 3741 @Deprecated(since="12", forRemoval=true) 3742 public final void putObject(Object o, long offset, Object x) { 3743 putReference(o, offset, x); 3744 } 3745 @Deprecated(since="12", forRemoval=true) 3746 public final void putObjectVolatile(Object o, long offset, Object x) { 3747 putReferenceVolatile(o, offset, x); 3748 } 3749 @Deprecated(since="12", forRemoval=true) 3750 public final void putObjectOpaque(Object o, long offset, Object x) { 3751 putReferenceOpaque(o, offset, x); 3752 } 3753 @Deprecated(since="12", forRemoval=true) 3754 public final void putObjectRelease(Object o, long offset, Object x) { 3755 putReferenceRelease(o, offset, x); 3756 } 3757 3758 3759 @Deprecated(since="12", forRemoval=true) 3760 public final Object getAndSetObject(Object o, long offset, Object newValue) { 3761 return getAndSetReference(o, offset, newValue); 3762 } 3763 @Deprecated(since="12", forRemoval=true) 3764 public final Object getAndSetObjectAcquire(Object o, long offset, Object newValue) { 3765 return getAndSetReferenceAcquire(o, offset, newValue); 3766 } 3767 @Deprecated(since="12", forRemoval=true) 3768 public final Object getAndSetObjectRelease(Object o, long offset, Object newValue) { 3769 return getAndSetReferenceRelease(o, offset, newValue); 3770 } 3771 3772 3773 @Deprecated(since="12", forRemoval=true) 3774 public final boolean compareAndSetObject(Object o, long offset, Object expected, Object x) { 3775 return compareAndSetReference(o, offset, expected, x); 3776 } 3777 @Deprecated(since="12", forRemoval=true) 3778 public final Object compareAndExchangeObject(Object o, long offset, Object expected, Object x) { 3779 return compareAndExchangeReference(o, offset, expected, x); 3780 } 3781 @Deprecated(since="12", forRemoval=true) 3782 public final Object compareAndExchangeObjectAcquire(Object o, long offset, Object expected, Object x) { 3783 return compareAndExchangeReferenceAcquire(o, offset, expected, x); 3784 } 3785 @Deprecated(since="12", forRemoval=true) 3786 public final Object compareAndExchangeObjectRelease(Object o, long offset, Object expected, Object x) { 3787 return compareAndExchangeReferenceRelease(o, offset, expected, x); 3788 } 3789 3790 3791 @Deprecated(since="12", forRemoval=true) 3792 public final boolean weakCompareAndSetObject(Object o, long offset, Object expected, Object x) { 3793 return weakCompareAndSetReference(o, offset, expected, x); 3794 } 3795 @Deprecated(since="12", forRemoval=true) 3796 public final boolean weakCompareAndSetObjectAcquire(Object o, long offset, Object expected, Object x) { 3797 return weakCompareAndSetReferenceAcquire(o, offset, expected, x); 3798 } 3799 @Deprecated(since="12", forRemoval=true) 3800 public final boolean weakCompareAndSetObjectPlain(Object o, long offset, Object expected, Object x) { 3801 return weakCompareAndSetReferencePlain(o, offset, expected, x); 3802 } 3803 @Deprecated(since="12", forRemoval=true) 3804 public final boolean weakCompareAndSetObjectRelease(Object o, long offset, Object expected, Object x) { 3805 return weakCompareAndSetReferenceRelease(o, offset, expected, x); 3806 } 3807 } |