Searched refs:longOffset (Results 1 – 2 of 2) sorted by relevance
/art/test/004-UnsafeTest/src/ |
D | Main.java | 110 long longOffset = unsafe.objectFieldOffset(longField); in testGetAndPutAndCAS() local 111 check(unsafe.getLong(t, longOffset), 0, "Unsafe.getLong(Object, long) - initial"); in testGetAndPutAndCAS() 112 unsafe.putLong(t, longOffset, longValue); in testGetAndPutAndCAS() 114 check(unsafe.getLong(t, longOffset), longValue, "Unsafe.getLong(Object, long)"); in testGetAndPutAndCAS() 140 if (unsafe.compareAndSwapLong(t, longOffset, 0, 1)) { in testGetAndPutAndCAS() 143 if (!unsafe.compareAndSwapLong(t, longOffset, longValue, 0)) { in testGetAndPutAndCAS() 147 if (!unsafe.compareAndSwapLong(t, longOffset, 0, 1)) { in testGetAndPutAndCAS() 152 if (!unsafe.compareAndSwapLong(t, longOffset, 1, 1)) { in testGetAndPutAndCAS()
|
/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()
|