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()
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()
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()
176 if (unsafe.compareAndSwapObject(t, objectOffset, new Object(), new Object())) { in testGetAndPutAndCAS()
181 if (!unsafe.compareAndSwapObject(t, objectOffset, objectValue, objectValue2)) { in testGetAndPutAndCAS()
186 if (!unsafe.compareAndSwapObject(t, objectOffset, objectValue2, objectValue3)) { in testGetAndPutAndCAS()
192 if (!unsafe.compareAndSwapObject(t, objectOffset, objectValue3, objectValue3)) { in testGetAndPutAndCAS()
198 if (!unsafe.compareAndSwapObject(t, objectOffset, objectValue3, t)) { in testGetAndPutAndCAS()
204 if (!unsafe.compareAndSwapObject(t, objectOffset, t, t)) { in testGetAndPutAndCAS()
209 if (!unsafe.compareAndSwapObject(t, objectOffset, t, new Object())) { in testGetAndPutAndCAS()