/art/test/004-UnsafeTest/src/ |
D | Main.java | 65 Unsafe unsafe = getUnsafe(); in main() local 67 testArrayBaseOffset(unsafe); in main() 68 testArrayIndexScale(unsafe); in main() 69 testGetAndPutAndCAS(unsafe); in main() 70 testGetAndPutVolatile(unsafe); in main() 71 testCopyMemoryPrimitiveArrays(unsafe); in main() 74 private static void testArrayBaseOffset(Unsafe unsafe) { in testArrayBaseOffset() argument 75 check(unsafe.arrayBaseOffset(boolean[].class), vmArrayBaseOffset(boolean[].class), in testArrayBaseOffset() 77 check(unsafe.arrayBaseOffset(byte[].class), vmArrayBaseOffset(byte[].class), in testArrayBaseOffset() 79 check(unsafe.arrayBaseOffset(char[].class), vmArrayBaseOffset(char[].class), in testArrayBaseOffset() [all …]
|
/art/test/555-UnsafeGetLong-regression/src/ |
D | Main.java | 36 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/ |
D | Main.java | 30 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() 99 unsafe.loadFence(); in load() 108 unsafe.storeFence(); in store() 117 unsafe.fullFence(); in full() 162 intOffset = unsafe.objectFieldOffset(intField); in main() [all …]
|
/art/test/528-long-hint/src/ |
D | Main.java | 27 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/test/160-read-barrier-stress/src/ |
D | Main.java | 189 Unsafe unsafe = getUnsafe(); in testUnsafeGet() local 191 unsafe.objectFieldOffset(ManyFields.class.getField("testField0000")); in testUnsafeGet() 193 unsafe.objectFieldOffset(ManyFields.class.getField("testField0001")); in testUnsafeGet() 195 unsafe.objectFieldOffset(ManyFields.class.getField("testField1024")); in testUnsafeGet() 197 unsafe.objectFieldOffset(ManyFields.class.getField("testField4444")); in testUnsafeGet() 199 unsafe.objectFieldOffset(ManyFields.class.getField("testField4998")); in testUnsafeGet() 201 unsafe.objectFieldOffset(ManyFields.class.getField("testField4999")); in testUnsafeGet() 210 assertSameObject(f0000, unsafe.getObject(mf, f0000Offset)); in testUnsafeGet() 211 assertDifferentObject(f0000, unsafe.getObject(mf, f0001Offset)); in testUnsafeGet() 212 assertSameObject(f1024, unsafe.getObject(mf, f1024Offset)); in testUnsafeGet() [all …]
|
/art/test/518-null-array-get/ |
D | info.txt | 1 Codifies that the verifier should reject type-unsafe
|
/art/runtime/native/ |
D | sun_misc_Unsafe.cc | 308 static void Unsafe_copyMemory(JNIEnv *env, jobject unsafe ATTRIBUTE_UNUSED, jlong src, in Unsafe_copyMemory() 351 jobject unsafe ATTRIBUTE_UNUSED, in Unsafe_copyMemoryToPrimitiveArray() 386 jobject unsafe ATTRIBUTE_UNUSED, in Unsafe_copyMemoryFromPrimitiveArray()
|
/art/compiler/jni/ |
D | jni_compiler_test.cc | 1375 jboolean my_casi(JNIEnv* env, jobject unsafe, jobject obj, jlong offset, jint expected, jint newval… in JNI_TEST() 1376 EXPECT_TRUE(env->IsSameObject(JniCompilerTest::jobj_, unsafe)); in JNI_TEST()
|
/art/test/1980-obsolete-object-cleared/ |
D | expected-stdout.txt | 5 Using unsafe to access values directly from memory. 12 Using unsafe to access obsolete values directly from memory.
|
/art/build/boot/hiddenapi/ |
D | hiddenapi-max-target-o-low-priority.txt | 2059 Ljava/io/ObjectStreamClass$FieldReflector;->unsafe:Lsun/misc/Unsafe; 9462 Ljava/util/Random;->unsafe:Lsun/misc/Unsafe;
|
/art/build/boot/ |
D | boot-image-profile.txt | 3474 HSPLjava/nio/Bits;->unsafe()Lsun/misc/Unsafe;
|