Lines Matching refs:unsafe
189 Unsafe unsafe = getUnsafe(); in testUnsafeGet() local
191 unsafe.objectFieldOffset(ManyFields.class.getField("testField0000")); in testUnsafeGet()
193 unsafe.objectFieldOffset(ManyFields.class.getField("testField0001")); in testUnsafeGet()
195 unsafe.objectFieldOffset(ManyFields.class.getField("testField1024")); in testUnsafeGet()
197 unsafe.objectFieldOffset(ManyFields.class.getField("testField4444")); in testUnsafeGet()
199 unsafe.objectFieldOffset(ManyFields.class.getField("testField4998")); in testUnsafeGet()
201 unsafe.objectFieldOffset(ManyFields.class.getField("testField4999")); in testUnsafeGet()
210 assertSameObject(f0000, unsafe.getObject(mf, f0000Offset)); in testUnsafeGet()
211 assertDifferentObject(f0000, unsafe.getObject(mf, f0001Offset)); in testUnsafeGet()
212 assertSameObject(f1024, unsafe.getObject(mf, f1024Offset)); in testUnsafeGet()
213 assertSameObject(f4444, unsafe.getObject(mf, f4444Offset)); in testUnsafeGet()
214 assertDifferentObject(f4999, unsafe.getObject(mf, f4998Offset)); in testUnsafeGet()
215 assertSameObject(f4999, unsafe.getObject(mf, f4999Offset)); in testUnsafeGet()
226 Unsafe unsafe = getUnsafe(); in testUnsafeCas() local
228 unsafe.objectFieldOffset(ManyFields.class.getField("testField0000")); in testUnsafeCas()
230 unsafe.objectFieldOffset(ManyFields.class.getField("testField0001")); in testUnsafeCas()
232 unsafe.objectFieldOffset(ManyFields.class.getField("testField1024")); in testUnsafeCas()
234 unsafe.objectFieldOffset(ManyFields.class.getField("testField4444")); in testUnsafeCas()
236 unsafe.objectFieldOffset(ManyFields.class.getField("testField4998")); in testUnsafeCas()
238 unsafe.objectFieldOffset(ManyFields.class.getField("testField4999")); in testUnsafeCas()
247 assertEqual(false, unsafe.compareAndSwapObject(mf, f0000Offset, f1024, f4444)); in testUnsafeCas()
248 assertEqual(false, unsafe.compareAndSwapObject(mf, f0001Offset, f1024, f4444)); in testUnsafeCas()
249 assertEqual(true, unsafe.compareAndSwapObject(mf, f1024Offset, f1024, f4444)); in testUnsafeCas()
250 assertEqual(true, unsafe.compareAndSwapObject(mf, f1024Offset, f4444, f1024)); in testUnsafeCas()
251 assertEqual(false, unsafe.compareAndSwapObject(mf, f1024Offset, f4444, f1024)); in testUnsafeCas()
252 assertEqual(false, unsafe.compareAndSwapObject(mf, f4444Offset, f1024, f4444)); in testUnsafeCas()
253 assertEqual(false, unsafe.compareAndSwapObject(mf, f4998Offset, f1024, f4444)); in testUnsafeCas()
254 assertEqual(false, unsafe.compareAndSwapObject(mf, f4999Offset, f1024, f4444)); in testUnsafeCas()
262 Unsafe unsafe = getUnsafe(); in testUnsafeCasRegression() local
264 unsafe.objectFieldOffset(ManyFields.class.getField("testField0001")); in testUnsafeCasRegression()
282 unsafe.compareAndSwapObject(mf, f0001Offset, f0000, null); // Ignore the result. in testUnsafeCasRegression()