Lines Matching refs:unsafe

51     Unsafe unsafe = getUnsafe();  in main()  local
52 check(unsafe.arrayBaseOffset(boolean[].class), vmArrayBaseOffset(boolean[].class), in main()
54 check(unsafe.arrayBaseOffset(byte[].class), vmArrayBaseOffset(byte[].class), in main()
56 check(unsafe.arrayBaseOffset(char[].class), vmArrayBaseOffset(char[].class), in main()
58 check(unsafe.arrayBaseOffset(double[].class), vmArrayBaseOffset(double[].class), in main()
60 check(unsafe.arrayBaseOffset(float[].class), vmArrayBaseOffset(float[].class), in main()
62 check(unsafe.arrayBaseOffset(int[].class), vmArrayBaseOffset(int[].class), in main()
64 check(unsafe.arrayBaseOffset(long[].class), vmArrayBaseOffset(long[].class), in main()
66 check(unsafe.arrayBaseOffset(Object[].class), vmArrayBaseOffset(Object[].class), in main()
69 check(unsafe.arrayIndexScale(boolean[].class), vmArrayIndexScale(boolean[].class), in main()
71 check(unsafe.arrayIndexScale(byte[].class), vmArrayIndexScale(byte[].class), in main()
73 check(unsafe.arrayIndexScale(char[].class), vmArrayIndexScale(char[].class), in main()
75 check(unsafe.arrayIndexScale(double[].class), vmArrayIndexScale(double[].class), in main()
77 check(unsafe.arrayIndexScale(float[].class), vmArrayIndexScale(float[].class), in main()
79 check(unsafe.arrayIndexScale(int[].class), vmArrayIndexScale(int[].class), in main()
81 check(unsafe.arrayIndexScale(long[].class), vmArrayIndexScale(long[].class), in main()
83 check(unsafe.arrayIndexScale(Object[].class), vmArrayIndexScale(Object[].class), in main()
90 long intOffset = unsafe.objectFieldOffset(intField); in main()
91 check(unsafe.getInt(t, intOffset), 0, "Unsafe.getInt(Object, long) - initial"); in main()
92 unsafe.putInt(t, intOffset, intValue); in main()
94 check(unsafe.getInt(t, intOffset), intValue, "Unsafe.getInt(Object, long)"); in main()
98 long longOffset = unsafe.objectFieldOffset(longField); in main()
99 check(unsafe.getLong(t, longOffset), 0, "Unsafe.getLong(Object, long) - initial"); in main()
100 unsafe.putLong(t, longOffset, longValue); in main()
102 check(unsafe.getLong(t, longOffset), longValue, "Unsafe.getLong(Object, long)"); in main()
106 long objectOffset = unsafe.objectFieldOffset(objectField); in main()
107 check(unsafe.getObject(t, objectOffset), null, "Unsafe.getObject(Object, long) - initial"); in main()
108 unsafe.putObject(t, objectOffset, objectValue); in main()
110 check(unsafe.getObject(t, objectOffset), objectValue, "Unsafe.getObject(Object, long)"); in main()
112 if (unsafe.compareAndSwapInt(t, intOffset, 0, 1)) { in main()
115 if (!unsafe.compareAndSwapInt(t, intOffset, intValue, 0)) { in main()
119 if (!unsafe.compareAndSwapInt(t, intOffset, 0, 1)) { in main()
124 if (!unsafe.compareAndSwapInt(t, intOffset, 1, 1)) { in main()
128 if (unsafe.compareAndSwapLong(t, longOffset, 0, 1)) { in main()
131 if (!unsafe.compareAndSwapLong(t, longOffset, longValue, 0)) { in main()
135 if (!unsafe.compareAndSwapLong(t, longOffset, 0, 1)) { in main()
140 if (!unsafe.compareAndSwapLong(t, longOffset, 1, 1)) { in main()
149 if (unsafe.compareAndSwapObject(t, objectOffset, new Object(), new Object())) { in main()
154 if (!unsafe.compareAndSwapObject(t, objectOffset, objectValue, objectValue2)) { in main()
159 if (!unsafe.compareAndSwapObject(t, objectOffset, objectValue2, objectValue3)) { in main()
165 if (!unsafe.compareAndSwapObject(t, objectOffset, objectValue3, objectValue3)) { in main()
171 if (!unsafe.compareAndSwapObject(t, objectOffset, objectValue3, t)) { in main()
177 if (!unsafe.compareAndSwapObject(t, objectOffset, t, t)) { in main()
182 if (!unsafe.compareAndSwapObject(t, objectOffset, t, new Object())) { in main()