Home
last modified time | relevance | path

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

/art/test/004-checker-UnsafeTest18/src/
DMain.java165 final long intOffset, longOffset, objOffset; in main() local
171 intOffset = unsafe.objectFieldOffset(intField); in main()
181 set32(m, intOffset, 3); in main()
190 add32(m, intOffset, 11); in main()
201 set32(m, intOffset, i); in main()
230 add32(m, intOffset, i + 1); in main()
/art/test/004-UnsafeTest/src/
DMain.java117 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()
139 if (unsafe.compareAndSwapInt(t, intOffset, 0, 1)) { in testGetAndPutAndCAS()
142 if (!unsafe.compareAndSwapInt(t, intOffset, intValue, 0)) { in testGetAndPutAndCAS()
146 if (!unsafe.compareAndSwapInt(t, intOffset, 0, 1)) { in testGetAndPutAndCAS()
151 if (!unsafe.compareAndSwapInt(t, intOffset, 1, 1)) { in testGetAndPutAndCAS()