Lines Matching refs:t

113     TestClass t = new TestClass();  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()
120 check(t.intVar, intValue, "Unsafe.putInt(Object, long, int)"); in testGetAndPutAndCAS()
121 check(unsafe.getInt(t, intOffset), intValue, "Unsafe.getInt(Object, long)"); in testGetAndPutAndCAS()
126 check(unsafe.getLong(t, longOffset), 0, "Unsafe.getLong(Object, long) - initial"); in testGetAndPutAndCAS()
127 unsafe.putLong(t, longOffset, longValue); in testGetAndPutAndCAS()
128 check(t.longVar, longValue, "Unsafe.putLong(Object, long, long)"); in testGetAndPutAndCAS()
129 check(unsafe.getLong(t, longOffset), longValue, "Unsafe.getLong(Object, long)"); in testGetAndPutAndCAS()
134 check(unsafe.getObject(t, objectOffset), null, "Unsafe.getObject(Object, long) - initial"); in testGetAndPutAndCAS()
135 unsafe.putObject(t, objectOffset, objectValue); in testGetAndPutAndCAS()
136 check(t.objectVar, objectValue, "Unsafe.putObject(Object, long, Object)"); in testGetAndPutAndCAS()
137 check(unsafe.getObject(t, objectOffset), objectValue, "Unsafe.getObject(Object, long)"); in testGetAndPutAndCAS()
142 check(unsafe.getByte(t, byteOffset), 0, "Unsafe.getByte(Object, long) - initial"); in testGetAndPutAndCAS()
143 unsafe.putByte(t, byteOffset, byteValue); in testGetAndPutAndCAS()
144 check(t.byteVar, byteValue, "Unsafe.putByte(Object, long, byte)"); in testGetAndPutAndCAS()
145 check(unsafe.getByte(t, byteOffset), byteValue, "Unsafe.getByte(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()
163 if (unsafe.compareAndSwapLong(t, longOffset, 0, 1)) { in testGetAndPutAndCAS()
166 if (!unsafe.compareAndSwapLong(t, longOffset, longValue, 0)) { in testGetAndPutAndCAS()
170 if (!unsafe.compareAndSwapLong(t, longOffset, 0, 1)) { in testGetAndPutAndCAS()
175 if (!unsafe.compareAndSwapLong(t, longOffset, 1, 1)) { in testGetAndPutAndCAS()
184 if (unsafe.compareAndSwapObject(t, objectOffset, new Object(), new Object())) { in testGetAndPutAndCAS()
189 if (!unsafe.compareAndSwapObject(t, objectOffset, objectValue, objectValue2)) { in testGetAndPutAndCAS()
194 if (!unsafe.compareAndSwapObject(t, objectOffset, objectValue2, objectValue3)) { in testGetAndPutAndCAS()
200 if (!unsafe.compareAndSwapObject(t, objectOffset, objectValue3, objectValue3)) { in testGetAndPutAndCAS()
206 if (!unsafe.compareAndSwapObject(t, objectOffset, objectValue3, t)) { in testGetAndPutAndCAS()
212 if (!unsafe.compareAndSwapObject(t, objectOffset, t, t)) { in testGetAndPutAndCAS()
217 if (!unsafe.compareAndSwapObject(t, objectOffset, t, new Object())) { in testGetAndPutAndCAS()