Home
last modified time | relevance | path

Searched refs:Unsafe (Results 1 – 25 of 72) sorted by relevance

123

/libcore/ojluni/src/main/java/jdk/internal/util/
DArraysSupport.java29 import jdk.internal.misc.Unsafe;
58 static final Unsafe U = Unsafe.getUnsafe();
63 …public static final int LOG2_ARRAY_BOOLEAN_INDEX_SCALE = exactLog2(Unsafe.ARRAY_BOOLEAN_INDEX_SCAL…
64 public static final int LOG2_ARRAY_BYTE_INDEX_SCALE = exactLog2(Unsafe.ARRAY_BYTE_INDEX_SCALE);
65 public static final int LOG2_ARRAY_CHAR_INDEX_SCALE = exactLog2(Unsafe.ARRAY_CHAR_INDEX_SCALE);
66 … public static final int LOG2_ARRAY_SHORT_INDEX_SCALE = exactLog2(Unsafe.ARRAY_SHORT_INDEX_SCALE);
67 public static final int LOG2_ARRAY_INT_INDEX_SCALE = exactLog2(Unsafe.ARRAY_INT_INDEX_SCALE);
68 public static final int LOG2_ARRAY_LONG_INDEX_SCALE = exactLog2(Unsafe.ARRAY_LONG_INDEX_SCALE);
69 … public static final int LOG2_ARRAY_FLOAT_INDEX_SCALE = exactLog2(Unsafe.ARRAY_FLOAT_INDEX_SCALE);
70 …public static final int LOG2_ARRAY_DOUBLE_INDEX_SCALE = exactLog2(Unsafe.ARRAY_DOUBLE_INDEX_SCALE);
[all …]
/libcore/luni/src/test/java/libcore/sun/misc/
DUnsafeTest.java27 import sun.misc.Unsafe;
33 Unsafe.getUnsafe(); in test_getUnsafeForbidden()
46 Unsafe.getUnsafe(); in test_getUnsafeForbiddenWithSystemCaller()
63 private static Unsafe getUnsafe() throws Exception { in getUnsafe()
67 return (Unsafe) f.get(null); in getUnsafe()
79 Unsafe unsafe = getUnsafe(); in test_copyMemory()
122 Unsafe unsafe = getUnsafe(); in test_getBoolean_Relative()
131 Unsafe unsafe = getUnsafe(); in test_getByte_Relative()
140 Unsafe unsafe = getUnsafe(); in test_getInt_Relative()
149 Unsafe unsafe = getUnsafe(); in test_getLong_Relative()
[all …]
/libcore/ojluni/src/main/java/java/util/zip/
DCRC32C.java31 import jdk.internal.misc.Unsafe;
65 private static final Unsafe UNSAFE = Unsafe.getUnsafe();
219 if (end - off >= 8 && Unsafe.ARRAY_BYTE_INDEX_SCALE == 1) { in updateBytes()
223 = (8 - ((Unsafe.ARRAY_BYTE_BASE_OFFSET + off) & 0x7)) & 0x7; in updateBytes()
236 if (Unsafe.ADDRESS_SIZE == 4) { in updateBytes()
238 firstHalf = UNSAFE.getInt(b, (long)Unsafe.ARRAY_BYTE_BASE_OFFSET + off); in updateBytes()
239 secondHalf = UNSAFE.getInt(b, (long)Unsafe.ARRAY_BYTE_BASE_OFFSET + off in updateBytes()
242 long value = UNSAFE.getLong(b, (long)Unsafe.ARRAY_BYTE_BASE_OFFSET + off); in updateBytes()
DZipUtils.java39 import jdk.internal.misc.Unsafe;
294 private static final Unsafe unsafe = Unsafe.getUnsafe();
/libcore/ojluni/src/main/java/sun/nio/fs/
DNativeBuffer.java28 import sun.misc.Unsafe;
36 private static final Unsafe unsafe = Unsafe.getUnsafe();
DCancellable.java28 import sun.misc.Unsafe;
39 private static final Unsafe unsafe = Unsafe.getUnsafe();
DNativeBuffers.java28 import sun.misc.Unsafe;
37 private static final Unsafe unsafe = Unsafe.getUnsafe();
DLinuxDosFileAttributeView.java32 import sun.misc.Unsafe;
46 private static final Unsafe unsafe = Unsafe.getUnsafe();
/libcore/ojluni/src/main/java/sun/nio/ch/
DEPoll.java29 import sun.misc.Unsafe;
38 private static final Unsafe unsafe = Unsafe.getUnsafe();
DNativeObject.java32 import sun.misc.Unsafe;
43 protected static final Unsafe unsafe = Unsafe.getUnsafe();
DUtil.java33 import sun.misc.Unsafe;
353 private static Unsafe unsafe = Unsafe.getUnsafe();
367 static Unsafe unsafe() {
/libcore/ojluni/src/main/java/jdk/internal/access/
DSharedSecrets.java26 import jdk.internal.misc.Unsafe;
40 private static final Unsafe unsafe = Unsafe.getUnsafe();
/libcore/ojluni/src/main/java/sun/misc/
DUnsafe.java43 public final class Unsafe { class
45 private static final Unsafe THE_ONE = new Unsafe();
47 private static final Unsafe theUnsafe = THE_ONE;
53 private Unsafe() {} in Unsafe() method in Unsafe
59 public static Unsafe getUnsafe() { in getUnsafe()
66 if ((calling != null) && (calling != Unsafe.class.getClassLoader())) { in getUnsafe()
/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodHandleStatics.java28 import sun.misc.Unsafe;
40 static final Unsafe UNSAFE = Unsafe.getUnsafe();
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DLockSupport.java38 import jdk.internal.misc.Unsafe;
424 private static final Unsafe U = Unsafe.getUnsafe();
/libcore/ojluni/src/main/java/java/nio/
DBuffer.java29 import jdk.internal.misc.Unsafe;
35 import jdk.internal.misc.Unsafe;
191 static final Unsafe UNSAFE = Unsafe.getUnsafe();
DMappedByteBuffer.java36 import jdk.internal.misc.Unsafe;
289 Unsafe unsafe = Unsafe.getUnsafe(); in load()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/apache/harmony/kernel/dalvik/
DThreadsTest.java24 import sun.misc.Unsafe;
30 private static Unsafe UNSAFE = null;
39 Field field = Unsafe.class.getDeclaredField("THE_ONE");
42 UNSAFE = (Unsafe) field.get(null);
/libcore/ojluni/annotations/hiddenapi/sun/misc/
DUnsafe.java33 public final class Unsafe { class
35 private Unsafe() { in Unsafe() method in Unsafe
40 public static sun.misc.Unsafe getUnsafe() { in getUnsafe()
282 @UnsupportedAppUsage private static final sun.misc.Unsafe THE_ONE;
288 @UnsupportedAppUsage private static final sun.misc.Unsafe theUnsafe;
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DAtomicLongFieldUpdater.java45 import jdk.internal.misc.Unsafe;
377 private static final Unsafe U = Unsafe.getUnsafe();
529 private static final Unsafe U = Unsafe.getUnsafe();
DAtomicReferenceFieldUpdater.java45 import jdk.internal.misc.Unsafe;
299 private static final Unsafe U = Unsafe.getUnsafe();
DAtomicIntegerFieldUpdater.java45 import jdk.internal.misc.Unsafe;
378 private static final Unsafe U = Unsafe.getUnsafe();
/libcore/luni/src/main/native/
Dsun_misc_Unsafe.cpp27 NATIVE_METHOD(Unsafe, allocateInstance, "(Ljava/lang/Class;)Ljava/lang/Object;"),
/libcore/ojluni/src/main/java/jdk/internal/misc/
DInnocuousThread.java39 private static final jdk.internal.misc.Unsafe UNSAFE;
146 UNSAFE = jdk.internal.misc.Unsafe.getUnsafe();
DUnsafe.java54 public final class Unsafe { class
56 private static final Unsafe THE_ONE = new Unsafe();
58 private static final Unsafe theUnsafe = THE_ONE;
63 private Unsafe() {} in Unsafe() method in Unsafe
69 public static Unsafe getUnsafe() { in getUnsafe()
78 if ((calling != null) && (calling != Unsafe.class.getClassLoader())) { in getUnsafe()

123