Searched defs:unsafe (Results 1 - 6 of 6) sorted by relevance
/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | EPoll.java | 38 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:EPoll 69 return unsafe.allocateMemory(count * SIZEOF_EPOLLEVENT); 76 unsafe.freeMemory(address); 90 return unsafe.getInt(eventAddress + OFFSETOF_FD); 97 return unsafe.getInt(eventAddress + OFFSETOF_EVENTS);
|
H A D | NativeObject.java | 43 protected static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:NativeObject 75 this.allocationAddress = unsafe.allocateMemory(size); 79 long a = unsafe.allocateMemory(size + ps); 127 newAddress = unsafe.getLong(offset + address); 130 newAddress = unsafe.getInt(offset + address) & 0x00000000FFFFFFFF; 176 return unsafe.getByte(offset + address); 190 unsafe.putByte(offset + address, value); 203 return unsafe.getShort(offset + address); 217 unsafe.putShort(offset + address, value); 230 return unsafe [all...] |
H A D | Util.java | 336 private static Unsafe unsafe = Unsafe.getUnsafe(); field in class:Util 339 return unsafe.getByte(a); 343 unsafe.putByte(a, b); 347 unsafe.setMemory(((DirectBuffer) bb).address(), bb.capacity(), (byte) 0); 350 static Unsafe unsafe() { method in class:Util 351 return unsafe; 358 pageSize = unsafe().pageSize();
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | Random.java | 1220 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:Random 1224 seedOffset = unsafe.objectFieldOffset 1229 unsafe.putObjectVolatile(this, seedOffset, new AtomicLong(seedVal));
|
/libcore/ojluni/src/main/java/java/nio/ |
H A D | Bits.java | 594 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:Bits 597 return unsafe.getByte(a); 601 unsafe.putByte(a, b); 604 static Unsafe unsafe() { method in class:Bits 605 return unsafe; 624 long a = unsafe.allocateMemory(8); 626 unsafe.putLong(a, 0x0102030405060708L); 627 byte b = unsafe.getByte(a); 634 unsafe.freeMemory(a); 643 long a = unsafe [all...] |
/libcore/ojluni/src/main/java/java/io/ |
H A D | ObjectStreamClass.java | 1858 /** handle for performing unsafe operations */ 1859 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:ObjectStreamClass.FieldReflector 1865 /** unsafe field keys for reading fields - may contain dupes */ 1867 /** unsafe fields keys for writing fields - no dupes */ 1898 unsafe.objectFieldOffset(rf) : Unsafe.INVALID_FIELD_OFFSET; 1941 Bits.putBoolean(buf, off, unsafe.getBoolean(obj, key)); 1945 buf[off] = unsafe.getByte(obj, key); 1949 Bits.putChar(buf, off, unsafe.getChar(obj, key)); 1953 Bits.putShort(buf, off, unsafe.getShort(obj, key)); 1957 Bits.putInt(buf, off, unsafe [all...] |
Completed in 66 milliseconds