Searched refs:longOffset (Results 1 – 2 of 2) sorted by relevance
/art/test/004-UnsafeTest/src/ |
D | Main.java | 98 long longOffset = unsafe.objectFieldOffset(longField); in main() local 99 check(unsafe.getLong(t, longOffset), 0, "Unsafe.getLong(Object, long) - initial"); in main() 100 unsafe.putLong(t, longOffset, longValue); in main() 102 check(unsafe.getLong(t, longOffset), longValue, "Unsafe.getLong(Object, long)"); in main() 128 if (unsafe.compareAndSwapLong(t, longOffset, 0, 1)) { in main() 131 if (!unsafe.compareAndSwapLong(t, longOffset, longValue, 0)) { in main() 135 if (!unsafe.compareAndSwapLong(t, longOffset, 0, 1)) { in main() 140 if (!unsafe.compareAndSwapLong(t, longOffset, 1, 1)) { in main()
|
/art/test/004-checker-UnsafeTest18/src/ |
D | Main.java | 165 final long intOffset, longOffset, objOffset; in main() local 172 longOffset = unsafe.objectFieldOffset(longField); in main() 184 set64(m, longOffset, 7L); in main() 193 add64(m, longOffset, 13L); in main() 210 set64(m, longOffset, (long) (100 + i)); in main() 239 add64(m, longOffset, (long) (i + 1)); in main()
|