Lines Matching refs:intOffset
117 long intOffset = unsafe.objectFieldOffset(intField);
118 check(unsafe.getInt(t, intOffset), 0, "Unsafe.getInt(Object, long) - initial");
119 unsafe.putInt(t, intOffset, intValue);
121 check(unsafe.getInt(t, intOffset), intValue, "Unsafe.getInt(Object, long)");
139 if (unsafe.compareAndSwapInt(t, intOffset, 0, 1)) {
140 System.out.println("Unexpectedly succeeding compareAndSwapInt(t, intOffset, 0, 1)");
142 if (!unsafe.compareAndSwapInt(t, intOffset, intValue, 0)) {
144 "Unexpectedly not succeeding compareAndSwapInt(t, intOffset, intValue, 0)");
146 if (!unsafe.compareAndSwapInt(t, intOffset, 0, 1)) {
147 System.out.println("Unexpectedly not succeeding compareAndSwapInt(t, intOffset, 0, 1)");
151 if (!unsafe.compareAndSwapInt(t, intOffset, 1, 1)) {
152 System.out.println("Unexpectedly not succeeding compareAndSwapInt(t, intOffset, 1, 1)");