Home
last modified time | relevance | path

Searched refs:unsafe (Results 1 – 6 of 6) sorted by relevance

/art/test/004-UnsafeTest/src/
DMain.java51 Unsafe unsafe = getUnsafe(); in main() local
52 check(unsafe.arrayBaseOffset(boolean[].class), vmArrayBaseOffset(boolean[].class), in main()
54 check(unsafe.arrayBaseOffset(byte[].class), vmArrayBaseOffset(byte[].class), in main()
56 check(unsafe.arrayBaseOffset(char[].class), vmArrayBaseOffset(char[].class), in main()
58 check(unsafe.arrayBaseOffset(double[].class), vmArrayBaseOffset(double[].class), in main()
60 check(unsafe.arrayBaseOffset(float[].class), vmArrayBaseOffset(float[].class), in main()
62 check(unsafe.arrayBaseOffset(int[].class), vmArrayBaseOffset(int[].class), in main()
64 check(unsafe.arrayBaseOffset(long[].class), vmArrayBaseOffset(long[].class), in main()
66 check(unsafe.arrayBaseOffset(Object[].class), vmArrayBaseOffset(Object[].class), in main()
69 check(unsafe.arrayIndexScale(boolean[].class), vmArrayIndexScale(boolean[].class), in main()
[all …]
/art/test/555-UnsafeGetLong-regression/src/
DMain.java36 Unsafe unsafe = getUnsafe(); in main() local
38 testUnsafeGetLong(unsafe); in main()
41 public static void testUnsafeGetLong(Unsafe unsafe) throws Exception { in testUnsafeGetLong() argument
44 long lvar = unsafe.objectFieldOffset(longField); in testUnsafeGetLong()
45 lvar = unsafe.getLong(test, lvar); in testUnsafeGetLong()
/art/test/004-checker-UnsafeTest18/src/
DMain.java30 private static final Unsafe unsafe = getUnsafe(); field in Main
54 return unsafe.getAndSetInt(o, offset, newValue); in set32()
61 return unsafe.getAndSetLong(o, offset, newValue); in set64()
68 return unsafe.getAndSetObject(o, offset, newValue); in setObj()
79 return unsafe.getAndAddInt(o, offset, delta); in add32()
86 return unsafe.getAndAddLong(o, offset, delta); in add64()
102 unsafe.loadFence(); in load()
114 unsafe.storeFence(); in store()
126 unsafe.fullFence(); in full()
171 intOffset = unsafe.objectFieldOffset(intField); in main()
[all …]
/art/test/528-long-hint/src/
DMain.java27 Unsafe unsafe = getUnsafe(); in main() local
29 long offset = unsafe.objectFieldOffset(Main.class.getDeclaredField("instanceField")); in main()
36 unsafe.compareAndSwapLong(f, offset, a, b); in main()
/art/runtime/native/
Dsun_misc_Unsafe.cc290 static void Unsafe_copyMemory(JNIEnv *env, jobject unsafe ATTRIBUTE_UNUSED, jlong src, in Unsafe_copyMemory()
331 jobject unsafe ATTRIBUTE_UNUSED, in Unsafe_copyMemoryToPrimitiveArray()
362 jobject unsafe ATTRIBUTE_UNUSED, in Unsafe_copyMemoryFromPrimitiveArray()
/art/compiler/jni/
Djni_compiler_test.cc861 jboolean my_casi(JNIEnv* env, jobject unsafe, jobject obj, jlong offset, jint expected, jint newval… in JNI_TEST()
862 EXPECT_TRUE(env->IsSameObject(JniCompilerTest::jobj_, unsafe)); in JNI_TEST()