Lines Matching refs:check
21 private static void check(int actual, int expected, String msg) { in check() method in Main
28 private static void check(long actual, long expected, String msg) { in check() method in Main
35 private static void check(float actual, float expected, String msg) { in check() method in Main
42 private static void check(double actual, double expected, String msg) { in check() method in Main
49 private static void check(Object actual, Object expected, String msg) { in check() method in Main
75 check(unsafe.arrayBaseOffset(boolean[].class), vmArrayBaseOffset(boolean[].class), in testArrayBaseOffset()
77 check(unsafe.arrayBaseOffset(byte[].class), vmArrayBaseOffset(byte[].class), in testArrayBaseOffset()
79 check(unsafe.arrayBaseOffset(char[].class), vmArrayBaseOffset(char[].class), in testArrayBaseOffset()
81 check(unsafe.arrayBaseOffset(double[].class), vmArrayBaseOffset(double[].class), in testArrayBaseOffset()
83 check(unsafe.arrayBaseOffset(float[].class), vmArrayBaseOffset(float[].class), in testArrayBaseOffset()
85 check(unsafe.arrayBaseOffset(int[].class), vmArrayBaseOffset(int[].class), in testArrayBaseOffset()
87 check(unsafe.arrayBaseOffset(long[].class), vmArrayBaseOffset(long[].class), in testArrayBaseOffset()
89 check(unsafe.arrayBaseOffset(Object[].class), vmArrayBaseOffset(Object[].class), in testArrayBaseOffset()
94 check(unsafe.arrayIndexScale(boolean[].class), vmArrayIndexScale(boolean[].class), in testArrayIndexScale()
96 check(unsafe.arrayIndexScale(byte[].class), vmArrayIndexScale(byte[].class), in testArrayIndexScale()
98 check(unsafe.arrayIndexScale(char[].class), vmArrayIndexScale(char[].class), in testArrayIndexScale()
100 check(unsafe.arrayIndexScale(double[].class), vmArrayIndexScale(double[].class), in testArrayIndexScale()
102 check(unsafe.arrayIndexScale(float[].class), vmArrayIndexScale(float[].class), in testArrayIndexScale()
104 check(unsafe.arrayIndexScale(int[].class), vmArrayIndexScale(int[].class), in testArrayIndexScale()
106 check(unsafe.arrayIndexScale(long[].class), vmArrayIndexScale(long[].class), in testArrayIndexScale()
108 check(unsafe.arrayIndexScale(Object[].class), vmArrayIndexScale(Object[].class), in testArrayIndexScale()
118 check(unsafe.getInt(t, intOffset), 0, "Unsafe.getInt(Object, long) - initial"); 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()
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()
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()
221 check(unsafe.getIntVolatile(tv, volatileIntOffset), in testGetAndPutVolatile()
225 check(tv.volatileIntVar, intValue, "Unsafe.putIntVolatile(Object, long, int)"); in testGetAndPutVolatile()
226 check(unsafe.getIntVolatile(tv, volatileIntOffset), in testGetAndPutVolatile()
233 check(unsafe.getLongVolatile(tv, volatileLongOffset), in testGetAndPutVolatile()
237 check(tv.volatileLongVar, longValue, "Unsafe.putLongVolatile(Object, long, long)"); in testGetAndPutVolatile()
238 check(unsafe.getLongVolatile(tv, volatileLongOffset), in testGetAndPutVolatile()
245 check(unsafe.getObjectVolatile(tv, volatileObjectOffset), in testGetAndPutVolatile()
249 check(tv.volatileObjectVar, objectValue, "Unsafe.putObjectVolatile(Object, long, Object)"); in testGetAndPutVolatile()
250 check(unsafe.getObjectVolatile(tv, volatileObjectOffset), in testGetAndPutVolatile()
269 check(inputFloats[i], outputFloats[i], "unsafe.copyMemory/float"); in testCopyMemoryPrimitiveArrays()
281 check(inputDoubles[i], outputDoubles[i], "unsafe.copyMemory/double"); in testCopyMemoryPrimitiveArrays()