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

/art/test/004-UnsafeTest/src/
H A DMain.java51 Unsafe unsafe = getUnsafe();
52 check(unsafe.arrayBaseOffset(boolean[].class), vmArrayBaseOffset(boolean[].class),
54 check(unsafe.arrayBaseOffset(byte[].class), vmArrayBaseOffset(byte[].class),
56 check(unsafe.arrayBaseOffset(char[].class), vmArrayBaseOffset(char[].class),
58 check(unsafe.arrayBaseOffset(double[].class), vmArrayBaseOffset(double[].class),
60 check(unsafe.arrayBaseOffset(float[].class), vmArrayBaseOffset(float[].class),
62 check(unsafe.arrayBaseOffset(int[].class), vmArrayBaseOffset(int[].class),
64 check(unsafe.arrayBaseOffset(long[].class), vmArrayBaseOffset(long[].class),
66 check(unsafe.arrayBaseOffset(Object[].class), vmArrayBaseOffset(Object[].class),
69 check(unsafe
[all...]
/art/test/555-UnsafeGetLong-regression/src/
H A DMain.java36 Unsafe unsafe = getUnsafe();
38 testUnsafeGetLong(unsafe);
41 public static void testUnsafeGetLong(Unsafe unsafe) throws Exception { argument
44 long lvar = unsafe.objectFieldOffset(longField);
45 lvar = unsafe.getLong(test, lvar);
/art/test/528-long-hint/src/
H A DMain.java27 Unsafe unsafe = getUnsafe();
29 long offset = unsafe.objectFieldOffset(Main.class.getDeclaredField("instanceField"));
36 unsafe.compareAndSwapLong(f, offset, a, b);
/art/test/004-checker-UnsafeTest18/src/
H A DMain.java23 * Checker test on the 1.8 unsafe operations. Note, this is by no means an
30 private static final Unsafe unsafe = getUnsafe(); field in class:Main
54 return unsafe.getAndSetInt(o, offset, newValue);
61 return unsafe.getAndSetLong(o, offset, newValue);
68 return unsafe.getAndSetObject(o, offset, newValue);
79 return unsafe.getAndAddInt(o, offset, delta);
86 return unsafe.getAndAddLong(o, offset, delta);
102 unsafe.loadFence();
114 unsafe.storeFence();
126 unsafe
[all...]
/art/runtime/native/
H A Dsun_misc_Unsafe.cc290 static void Unsafe_copyMemory(JNIEnv *env, jobject unsafe ATTRIBUTE_UNUSED, jlong src,
331 jobject unsafe ATTRIBUTE_UNUSED,
362 jobject unsafe ATTRIBUTE_UNUSED,
/art/compiler/jni/
H A Djni_compiler_test.cc861 jboolean my_casi(JNIEnv* env, jobject unsafe, jobject obj, jlong offset, jint expected, jint newval) { argument
862 EXPECT_TRUE(env->IsSameObject(JniCompilerTest::jobj_, unsafe));

Completed in 244 milliseconds