Home
last modified time | relevance | path

Searched refs:longOffset (Results 1 – 2 of 2) sorted by relevance

/art/test/004-checker-UnsafeTest18/src/
DMain.java156 final long intOffset, longOffset, objOffset; in main() local
163 longOffset = unsafe.objectFieldOffset(longField); in main()
175 set64(m, longOffset, 7L); in main()
184 add64(m, longOffset, 13L); in main()
201 set64(m, longOffset, (long) (100 + i)); in main()
230 add64(m, longOffset, (long) (i + 1)); in main()
/art/test/004-UnsafeTest/src/
DMain.java125 long longOffset = unsafe.objectFieldOffset(longField); in testGetAndPutAndCAS() local
126 check(unsafe.getLong(t, longOffset), 0, "Unsafe.getLong(Object, long) - initial"); in testGetAndPutAndCAS()
127 unsafe.putLong(t, longOffset, longValue); in testGetAndPutAndCAS()
129 check(unsafe.getLong(t, longOffset), longValue, "Unsafe.getLong(Object, long)"); in testGetAndPutAndCAS()
155 if (unsafe.compareAndSwapLong(t, longOffset, 0, 1)) { in testGetAndPutAndCAS()
158 if (!unsafe.compareAndSwapLong(t, longOffset, longValue, 0)) { in testGetAndPutAndCAS()
162 if (!unsafe.compareAndSwapLong(t, longOffset, 0, 1)) { in testGetAndPutAndCAS()
167 if (!unsafe.compareAndSwapLong(t, longOffset, 1, 1)) { in testGetAndPutAndCAS()