/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | NativeObject.java | 43 protected static final Unsafe unsafe = Unsafe.getUnsafe(); field in NativeObject 75 this.allocationAddress = unsafe.allocateMemory(size); in NativeObject() 79 long a = unsafe.allocateMemory(size + ps); in NativeObject() 127 newAddress = unsafe.getLong(offset + address); in getObject() 130 newAddress = unsafe.getInt(offset + address) & 0x00000000FFFFFFFF; in getObject() 176 return unsafe.getByte(offset + address); in getByte() 190 unsafe.putByte(offset + address, value); in putByte() 203 return unsafe.getShort(offset + address); in getShort() 217 unsafe.putShort(offset + address, value); in putShort() 230 return unsafe.getChar(offset + address); in getChar() [all …]
|
D | EPoll.java | 38 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in EPoll 69 return unsafe.allocateMemory(count * SIZEOF_EPOLLEVENT); in allocatePollArray() 76 unsafe.freeMemory(address); in freePollArray() 90 return unsafe.getInt(eventAddress + OFFSETOF_FD); in getDescriptor() 97 return unsafe.getInt(eventAddress + OFFSETOF_EVENTS); in getEvents()
|
D | Util.java | 336 private static Unsafe unsafe = Unsafe.getUnsafe(); 339 return unsafe.getByte(a); 343 unsafe.putByte(a, b); 347 unsafe.setMemory(((DirectBuffer) bb).address(), bb.capacity(), (byte) 0); 350 static Unsafe unsafe() { 351 return unsafe; 358 pageSize = unsafe().pageSize();
|
D | AllocatedNativeObject.java | 61 unsafe.freeMemory(allocationAddress); in free()
|
D | IOVecWrapper.java | 158 addressSize = Util.unsafe().addressSize();
|
/libcore/ojluni/src/main/java/java/nio/ |
D | MappedByteBuffer.java | 170 Unsafe unsafe = Unsafe.getUnsafe(); in load() local 176 x ^= unsafe.getByte(a); in load()
|
D | Bits.java | 594 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in Bits 597 return unsafe.getByte(a); in _get() 601 unsafe.putByte(a, b); in _put() 604 static Unsafe unsafe() { in unsafe() method in Bits 605 return unsafe; in unsafe() 665 pageSize = unsafe().pageSize(); in pageSize() 816 unsafe.copyMemoryFromPrimitiveArray(src, offset, dstAddr, size); in copyFromArray() 837 unsafe.copyMemoryToPrimitiveArray(srcAddr, dst, offset, size); in copyToArray()
|
/libcore/ojluni/src/main/java/java/net/ |
D | InetSocketAddress.java | 321 sun.misc.Unsafe unsafe = sun.misc.Unsafe.getUnsafe(); 322 FIELDS_OFFSET = unsafe.objectFieldOffset( 324 UNSAFE = unsafe;
|
/libcore/ojluni/src/main/java/java/io/ |
D | ObjectStreamClass.java | 1859 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in ObjectStreamClass.FieldReflector 1898 unsafe.objectFieldOffset(rf) : Unsafe.INVALID_FIELD_OFFSET; in FieldReflector() 1941 Bits.putBoolean(buf, off, unsafe.getBoolean(obj, key)); in getPrimFieldValues() 1945 buf[off] = unsafe.getByte(obj, key); in getPrimFieldValues() 1949 Bits.putChar(buf, off, unsafe.getChar(obj, key)); in getPrimFieldValues() 1953 Bits.putShort(buf, off, unsafe.getShort(obj, key)); in getPrimFieldValues() 1957 Bits.putInt(buf, off, unsafe.getInt(obj, key)); in getPrimFieldValues() 1961 Bits.putFloat(buf, off, unsafe.getFloat(obj, key)); in getPrimFieldValues() 1965 Bits.putLong(buf, off, unsafe.getLong(obj, key)); in getPrimFieldValues() 1969 Bits.putDouble(buf, off, unsafe.getDouble(obj, key)); in getPrimFieldValues() [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | Random.java | 1220 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in Random 1224 seedOffset = unsafe.objectFieldOffset 1229 unsafe.putObjectVolatile(this, seedOffset, new AtomicLong(seedVal)); in resetSeed()
|