Home
last modified time | relevance | path

Searched refs:Unsafe (Results 1 – 11 of 11) sorted by relevance

/art/test/528-long-hint/src/
DMain.java17 import sun.misc.Unsafe;
27 Unsafe unsafe = getUnsafe(); in main()
40 private static Unsafe getUnsafe() throws Exception { in getUnsafe()
41 Field f = Unsafe.class.getDeclaredField("theUnsafe"); in getUnsafe()
43 return (Unsafe) f.get(null); in getUnsafe()
/art/test/555-UnsafeGetLong-regression/src/
DMain.java18 import sun.misc.Unsafe;
27 private static Unsafe getUnsafe() throws Exception { in getUnsafe()
31 return (Unsafe) f.get(null); in getUnsafe()
36 Unsafe unsafe = getUnsafe(); in main()
41 public static void testUnsafeGetLong(Unsafe unsafe) throws Exception { in testUnsafeGetLong()
/art/runtime/native/
Dsun_misc_Unsafe.cc504 FAST_NATIVE_METHOD(Unsafe, compareAndSwapInt, "(Ljava/lang/Object;JII)Z"),
505 FAST_NATIVE_METHOD(Unsafe, compareAndSwapLong, "(Ljava/lang/Object;JJJ)Z"),
506 …FAST_NATIVE_METHOD(Unsafe, compareAndSwapObject, "(Ljava/lang/Object;JLjava/lang/Object;Ljava/lang…
507 FAST_NATIVE_METHOD(Unsafe, getIntVolatile, "(Ljava/lang/Object;J)I"),
508 FAST_NATIVE_METHOD(Unsafe, putIntVolatile, "(Ljava/lang/Object;JI)V"),
509 FAST_NATIVE_METHOD(Unsafe, getLongVolatile, "(Ljava/lang/Object;J)J"),
510 FAST_NATIVE_METHOD(Unsafe, putLongVolatile, "(Ljava/lang/Object;JJ)V"),
511 FAST_NATIVE_METHOD(Unsafe, getObjectVolatile, "(Ljava/lang/Object;J)Ljava/lang/Object;"),
512 FAST_NATIVE_METHOD(Unsafe, putObjectVolatile, "(Ljava/lang/Object;JLjava/lang/Object;)V"),
513 FAST_NATIVE_METHOD(Unsafe, getInt, "(Ljava/lang/Object;J)I"),
[all …]
/art/test/067-preemptive-unpark/src/
DMain.java17 import sun.misc.Unsafe;
22 private static Unsafe UNSAFE;
69 field = Unsafe.class.getDeclaredField("THE_ONE"); in setUp()
72 field = Unsafe.class.getDeclaredField("theUnsafe"); in setUp()
78 UNSAFE = (Unsafe) field.get(null); in setUp()
/art/test/004-UnsafeTest/src/
DMain.java18 import sun.misc.Unsafe;
42 private static Unsafe getUnsafe() throws NoSuchFieldException, IllegalAccessException { in getUnsafe()
43 Class<?> unsafeClass = Unsafe.class; in getUnsafe()
46 return (Unsafe) f.get(null); in getUnsafe()
51 Unsafe unsafe = getUnsafe(); in main()
59 private static void testArrayBaseOffset(Unsafe unsafe) { in testArrayBaseOffset()
78 private static void testArrayIndexScale(Unsafe unsafe) { in testArrayIndexScale()
97 private static void testGetAndPutAndCAS(Unsafe unsafe) throws NoSuchFieldException { in testGetAndPutAndCAS()
200 private static void testGetAndPutVolatile(Unsafe unsafe) throws NoSuchFieldException { in testGetAndPutVolatile()
/art/test/634-vdex-duplicate/src/sun/misc/
DUnsafe.java19 public class Unsafe { class
/art/test/004-checker-UnsafeTest18/
Dinfo.txt1 Test support for 1.8 sun.misc.Unsafe.
/art/test/004-UnsafeTest/
Dinfo.txt1 Test support for sun.misc.Unsafe.
/art/test/004-checker-UnsafeTest18/src/
DMain.java20 import sun.misc.Unsafe;
30 private static final Unsafe unsafe = getUnsafe();
343 private static Unsafe getUnsafe() { in getUnsafe()
345 Class<?> unsafeClass = Unsafe.class; in getUnsafe()
348 return (Unsafe) f.get(null); in getUnsafe()
/art/test/067-preemptive-unpark/
Dinfo.txt1 Test that Unsafe.unpark() operates as expected, in particular across a gc.
/art/test/555-UnsafeGetLong-regression/
Dinfo.txt1 Regression test for sun.misc.Unsafe.getLong's intrinsic's locations