Lines Matching refs:Unsafe

18 import jdk.internal.misc.Unsafe;
61 private static Unsafe getUnsafe() throws NoSuchFieldException, IllegalAccessException { in getUnsafe()
62 Class<?> unsafeClass = Unsafe.class; in getUnsafe()
65 return (Unsafe) f.get(null); in getUnsafe()
70 Unsafe unsafe = getUnsafe(); in main()
81 private static void testArrayBaseOffset(Unsafe unsafe) { in testArrayBaseOffset()
100 private static void testArrayIndexScale(Unsafe unsafe) { in testArrayIndexScale()
119 private static void testGetAndPutAndCAS(Unsafe unsafe) throws NoSuchFieldException { in testGetAndPutAndCAS()
222 private static void testCompareAndSet(Unsafe unsafe) throws NoSuchFieldException { in testCompareAndSet()
333 private static void testGetAndPutVolatile(Unsafe unsafe) throws NoSuchFieldException { in testGetAndPutVolatile()
373 private static void testGetAcquireAndPutRelease(Unsafe unsafe) throws NoSuchFieldException { in testGetAcquireAndPutRelease()
413 private static void testCopyMemory(Unsafe unsafe) { in testCopyMemory()
422 unsafe.copyMemory(inputInts, Unsafe.ARRAY_INT_BASE_OFFSET, in testCopyMemory()
423 outputInts, Unsafe.ARRAY_INT_BASE_OFFSET, in testCopyMemory()
436 unsafe.copyMemory(inputLongs, Unsafe.ARRAY_LONG_BASE_OFFSET, in testCopyMemory()
437 outputLongs, Unsafe.ARRAY_LONG_BASE_OFFSET, in testCopyMemory()
450 unsafe.copyMemory(inputFloats, Unsafe.ARRAY_FLOAT_BASE_OFFSET, in testCopyMemory()
451 outputFloats, Unsafe.ARRAY_FLOAT_BASE_OFFSET, in testCopyMemory()
463 unsafe.copyMemory(inputDoubles, Unsafe.ARRAY_DOUBLE_BASE_OFFSET, in testCopyMemory()
464 outputDoubles, Unsafe.ARRAY_DOUBLE_BASE_OFFSET, in testCopyMemory()
474 unsafe.copyMemory(inputInts, Unsafe.ARRAY_INT_BASE_OFFSET, in testCopyMemory()
491 dstArray, Unsafe.ARRAY_INT_BASE_OFFSET, in testCopyMemory()
500 unsafe.copyMemory(srcArray, Unsafe.ARRAY_INT_BASE_OFFSET, in testCopyMemory()