/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 | 353 private static Unsafe unsafe = Unsafe.getUnsafe(); 356 return unsafe.getByte(a); 360 unsafe.putByte(a, b); 364 unsafe.setMemory(((DirectBuffer)bb).address(), bb.capacity(), (byte)0); 367 static Unsafe unsafe() { 368 return unsafe;
|
D | AllocatedNativeObject.java | 61 unsafe.freeMemory(allocationAddress); in free()
|
D | IOVecWrapper.java | 158 addressSize = Util.unsafe().addressSize();
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | Cancellable.java | 39 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in Cancellable 49 pollingAddress = unsafe.allocateMemory(4); in Cancellable() 50 unsafe.putIntVolatile(null, pollingAddress, 0); in Cancellable() 77 unsafe.putIntVolatile(null, pollingAddress, cancelValue()); in cancel() 103 unsafe.freeMemory(pollingAddress); in run()
|
D | NativeBuffer.java | 36 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in NativeBuffer 52 unsafe.freeMemory(address); in run() 57 this.address = unsafe.allocateMemory(size); in NativeBuffer()
|
D | LinuxWatchService.java | 53 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in LinuxWatchService 201 this.address = unsafe.allocateMemory(BUFFER_SIZE); in Poller() 309 unsafe.freeMemory(address); in implCloseAll() 365 int wd = unsafe.getInt(event + OFFSETOF_WD); in run() 366 int mask = unsafe.getInt(event + OFFSETOF_MASK); in run() 367 int len = unsafe.getInt(event + OFFSETOF_LEN); in run() 378 if (unsafe.getByte(last) != 0) in run() 388 buf[i] = unsafe.getByte(event + OFFSETOF_NAME + i); in run()
|
D | LinuxUserDefinedFileAttributeView.java | 44 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in LinuxUserDefinedFileAttributeView 70 if (unsafe.getByte(address + pos) == 0) { in asList() 77 value[i] = unsafe.getByte(address + start + i); in asList() 194 dst.put(unsafe.getByte(address + i)); in read() 239 unsafe.putByte(address + i, src.get()); in write() 250 unsafe.putByte(address + i, tmp[i]); in write() 329 if (unsafe.getByte(address + pos) == 0) { in copyExtendedAttributes() 339 name[i] = unsafe.getByte(address + start + i); in copyExtendedAttributes()
|
D | NativeBuffers.java | 37 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in NativeBuffers 132 unsafe.putByte(buffer.address() + i, cstr[i]); in copyCStringToNativeBuffer() 135 unsafe.putByte(buffer.address() + len, (byte)0); in copyCStringToNativeBuffer()
|
D | LinuxDosFileAttributeView.java | 46 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in LinuxDosFileAttributeView 221 if (unsafe.getByte(buffer.address()+len-1) == 0) 230 buf[i] = unsafe.getByte(buffer.address() + i);
|
/libcore/ojluni/src/main/java/java/nio/ |
D | MappedByteBuffer.java | 173 Unsafe unsafe = Unsafe.getUnsafe(); in load() local 179 x ^= unsafe.getByte(a); in load()
|
D | Bits.java | 550 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in Bits 553 return unsafe.getByte(a); in _get() 557 unsafe.putByte(a, b); in _put() 560 static Unsafe unsafe() { in unsafe() method in Bits 561 return unsafe; in unsafe() 605 pageSize = unsafe().pageSize(); in pageSize()
|
/libcore/ojluni/src/main/java/java/net/ |
D | InetSocketAddress.java | 324 sun.misc.Unsafe unsafe = sun.misc.Unsafe.getUnsafe(); 325 FIELDS_OFFSET = unsafe.objectFieldOffset( 327 UNSAFE = unsafe;
|
D | Inet6Address.java | 607 sun.misc.Unsafe unsafe = sun.misc.Unsafe.getUnsafe(); 608 FIELDS_OFFSET = unsafe.objectFieldOffset( 610 UNSAFE = unsafe;
|
/libcore/ojluni/src/main/java/java/io/ |
D | ObjectStreamClass.java | 1986 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in ObjectStreamClass.FieldReflector 2025 unsafe.objectFieldOffset(rf) : Unsafe.INVALID_FIELD_OFFSET; in FieldReflector() 2068 Bits.putBoolean(buf, off, unsafe.getBoolean(obj, key)); in getPrimFieldValues() 2072 buf[off] = unsafe.getByte(obj, key); in getPrimFieldValues() 2076 Bits.putChar(buf, off, unsafe.getChar(obj, key)); in getPrimFieldValues() 2080 Bits.putShort(buf, off, unsafe.getShort(obj, key)); in getPrimFieldValues() 2084 Bits.putInt(buf, off, unsafe.getInt(obj, key)); in getPrimFieldValues() 2088 Bits.putFloat(buf, off, unsafe.getFloat(obj, key)); in getPrimFieldValues() 2092 Bits.putLong(buf, off, unsafe.getLong(obj, key)); in getPrimFieldValues() 2096 Bits.putDouble(buf, off, unsafe.getDouble(obj, key)); in getPrimFieldValues() [all …]
|
D | File.java | 2166 sun.misc.Unsafe unsafe = sun.misc.Unsafe.getUnsafe(); 2167 PATH_OFFSET = unsafe.objectFieldOffset( 2169 PREFIX_LENGTH_OFFSET = unsafe.objectFieldOffset( 2171 UNSAFE = unsafe;
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Random.java | 211 private static final sun.misc.Unsafe unsafe; field in Random 214 unsafe = null;
|
/libcore/ojluni/src/main/java/java/util/ |
D | Random.java | 1216 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in Random 1220 seedOffset = unsafe.objectFieldOffset 1225 unsafe.putObjectVolatile(this, seedOffset, new AtomicLong(seedVal)); in resetSeed()
|
/libcore/ojluni/annotations/hiddenapi/java/io/ |
D | ObjectStreamClass.java | 625 private static final sun.misc.Unsafe unsafe; field in ObjectStreamClass.FieldReflector 628 unsafe = null;
|