Searched refs:intOffset (Results 1 – 3 of 3) sorted by relevance
/art/test/2235-JdkUnsafeTest/src/ |
D | Main.java | 124 long intOffset = unsafe.objectFieldOffset(intField); in testGetAndPutAndCAS() local 125 check(unsafe.getInt(t, intOffset), 0, "Unsafe.getInt(Object, long) - initial"); in testGetAndPutAndCAS() 126 unsafe.putInt(t, intOffset, intValue); in testGetAndPutAndCAS() 128 check(unsafe.getInt(t, intOffset), intValue, "Unsafe.getInt(Object, long)"); in testGetAndPutAndCAS() 146 if (unsafe.compareAndSwapInt(t, intOffset, 0, 1)) { in testGetAndPutAndCAS() 149 if (!unsafe.compareAndSwapInt(t, intOffset, intValue, 0)) { in testGetAndPutAndCAS() 153 if (!unsafe.compareAndSwapInt(t, intOffset, 0, 1)) { in testGetAndPutAndCAS() 158 if (!unsafe.compareAndSwapInt(t, intOffset, 1, 1)) { in testGetAndPutAndCAS() 227 long intOffset = unsafe.objectFieldOffset(intField); in testCompareAndSet() local 228 unsafe.putInt(t, intOffset, intValue); in testCompareAndSet() [all …]
|
/art/test/004-checker-UnsafeTest18/src/ |
D | Main.java | 156 final long intOffset, longOffset, objOffset; in main() local 162 intOffset = unsafe.objectFieldOffset(intField); in main() 172 set32(m, intOffset, 3); in main() 181 add32(m, intOffset, 11); in main() 192 set32(m, intOffset, i); in main() 221 add32(m, intOffset, i + 1); in main()
|
/art/test/004-UnsafeTest/src/ |
D | Main.java | 117 long intOffset = unsafe.objectFieldOffset(intField); in testGetAndPutAndCAS() local 118 check(unsafe.getInt(t, intOffset), 0, "Unsafe.getInt(Object, long) - initial"); in testGetAndPutAndCAS() 119 unsafe.putInt(t, intOffset, intValue); in testGetAndPutAndCAS() 121 check(unsafe.getInt(t, intOffset), intValue, "Unsafe.getInt(Object, long)"); in testGetAndPutAndCAS() 147 if (unsafe.compareAndSwapInt(t, intOffset, 0, 1)) { in testGetAndPutAndCAS() 150 if (!unsafe.compareAndSwapInt(t, intOffset, intValue, 0)) { in testGetAndPutAndCAS() 154 if (!unsafe.compareAndSwapInt(t, intOffset, 0, 1)) { in testGetAndPutAndCAS() 159 if (!unsafe.compareAndSwapInt(t, intOffset, 1, 1)) { in testGetAndPutAndCAS()
|