/openjdk7/hotspot/test/compiler/6968348/ |
H A D | Test6968348.java | 37 static Unsafe unsafe; field in class:Test6968348 45 unsafe = (Unsafe)f.get(c); 46 array_long_base_offset = unsafe.arrayBaseOffset(long[].class); 55 unsafe.putLong(buffer, i, Long.reverseBytes(i));
|
/openjdk7/corba/src/share/classes/sun/corba/ |
H A D | SharedSecrets.java | 44 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:SharedSecrets 51 unsafe.ensureClassInitialized(ValueUtility.class);
|
/openjdk7/hotspot/test/compiler/7190310/ |
H A D | Test7190310_unsafe.java | 53 Unsafe unsafe = (Unsafe)f.get(c); 57 long referent_offset = unsafe.objectFieldOffset(f); 70 obj = getRef1(unsafe, ref, referent_offset); 73 obj = getRef2(unsafe, ref, referent_offset); 76 obj = getRef3(unsafe, ref, referent_offset); 79 obj = getRef4(unsafe, t, referent_offset); 84 if (!verifyGet(referent_offset, unsafe)) { 88 obj = getRef3(unsafe, t, referent_offset); 90 System.out.println("FAILED: unsafe.getObject(Object, " + referent_offset + ") " + obj + " != " + o); 93 obj = getRef4(unsafe, 100 verifyGet(long referent_offset, Unsafe unsafe) argument 129 getRef1(Unsafe unsafe, WeakReference ref, long referent_offset) argument 132 getRef2(Unsafe unsafe, Reference ref, long referent_offset) argument 135 getRef3(Unsafe unsafe, Object ref, long referent_offset) argument 138 getRef4(Unsafe unsafe, Test7190310_unsafe ref, long referent_offset) argument [all...] |
/openjdk7/jdk/src/windows/classes/sun/nio/fs/ |
H A D | WindowsLinkSupport.java | 43 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:WindowsLinkSupport 315 int tag = (int)unsafe.getLong(buffer.address() + OFFSETOF_REPARSETAG); 322 short nameOffset = unsafe.getShort(buffer.address() + OFFSETOF_PATHOFFSET); 323 short nameLengthInBytes = unsafe.getShort(buffer.address() + OFFSETOF_PATHLENGTH); 329 unsafe.copyMemory(null, buffer.address() + OFFSETOF_PATHBUFFER + nameOffset,
|
H A D | WindowsUserDefinedFileAttributeView.java | 46 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:WindowsUserDefinedFileAttributeView 147 int streamId = unsafe.getInt(address + OFFSETOF_STREAM_ID); 148 long streamSize = unsafe.getLong(address + OFFSETOF_STREAM_SIZE); 149 int nameSize = unsafe.getInt(address + OFFSETOF_STREAM_NAME_SIZE); 161 unsafe.copyMemory(null, address, nameAsArray,
|
/openjdk7/jdk/src/share/classes/sun/swing/ |
H A D | SwingAccessor.java | 43 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:SwingAccessor 91 unsafe.ensureClassInitialized(JTextComponent.class);
|
/openjdk7/jdk/src/share/classes/sun/management/ |
H A D | OperatingSystemImpl.java | 67 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:OperatingSystemImpl 70 if (unsafe.getLoadAverage(loadavg, 1) == 1) {
|
/openjdk7/jdk/src/share/classes/sun/nio/fs/ |
H A D | Cancellable.java | 39 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:Cancellable 49 pollingAddress = unsafe.allocateMemory(4); 50 unsafe.putIntVolatile(null, pollingAddress, 0); 77 unsafe.putIntVolatile(null, pollingAddress, cancelValue()); 103 unsafe.freeMemory(pollingAddress);
|
H A D | NativeBuffer.java | 36 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:NativeBuffer 52 unsafe.freeMemory(address); 57 this.address = unsafe.allocateMemory(size);
|
H A D | NativeBuffers.java | 37 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:NativeBuffers 127 unsafe.copyMemory(cstr, offset, null, buffer.address(), len); 128 unsafe.putByte(buffer.address() + len, (byte)0);
|
/openjdk7/jdk/src/share/classes/sun/reflect/ |
H A D | ClassDefiner.java | 37 static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:ClassDefiner 63 return unsafe.defineClass(name, bytes, off, len, newLoader, null);
|
/openjdk7/jdk/src/solaris/classes/sun/awt/X11/ |
H A D | UnsafeXDisposerRecord.java | 32 private static Unsafe unsafe = XlibWrapper.unsafe; field in class:UnsafeXDisposerRecord 73 unsafe.freeMemory(l); 83 unsafe.freeMemory(l);
|
H A D | XQueryTree.java | 33 private static Unsafe unsafe = XlibWrapper.unsafe; field in class:XQueryTree 36 long root_ptr = unsafe.allocateMemory(Native.getLongSize()); 37 long parent_ptr = unsafe.allocateMemory(Native.getLongSize()); 38 long children_ptr = unsafe.allocateMemory(Native.getLongSize()); 39 long nchildren_ptr = unsafe.allocateMemory(Native.getIntSize());
|
/openjdk7/jdk/src/share/classes/sun/invoke/anon/ |
H A D | AnonymousClassLoader.java | 81 public static AnonymousClassLoader make(sun.misc.Unsafe unsafe, Class<?> hostClass) { argument 82 if (unsafe == null) throw new NullPointerException(); 136 defineAnonymousClass.invoke(unsafe, 185 return unsafe.defineClass(null, classFile, 0, classFile.length, 192 private static sun.misc.Unsafe unsafe = sun.misc.Unsafe.getUnsafe(); field in class:AnonymousClassLoader 198 Class<? extends sun.misc.Unsafe> unsafeClass = unsafe.getClass();
|
/openjdk7/jdk/src/share/classes/java/util/concurrent/atomic/ |
H A D | AtomicBoolean.java | 53 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:AtomicBoolean 58 valueOffset = unsafe.objectFieldOffset 101 return unsafe.compareAndSwapInt(this, valueOffset, e, u); 119 return unsafe.compareAndSwapInt(this, valueOffset, e, u); 139 unsafe.putOrderedInt(this, valueOffset, v);
|
H A D | AtomicReference.java | 50 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:AtomicReference 55 valueOffset = unsafe.objectFieldOffset 102 unsafe.putOrderedObject(this, valueOffset, newValue); 114 return unsafe.compareAndSwapObject(this, valueOffset, expect, update); 130 return unsafe.compareAndSwapObject(this, valueOffset, expect, update);
|
H A D | AtomicReferenceFieldUpdater.java | 186 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:AtomicReferenceFieldUpdater.AtomicReferenceFieldUpdaterImpl 235 offset = unsafe.objectFieldOffset(field); 258 return unsafe.compareAndSwapObject(obj, offset, expect, update); 267 return unsafe.compareAndSwapObject(obj, offset, expect, update); 275 unsafe.putObjectVolatile(obj, offset, newValue); 283 unsafe.putOrderedObject(obj, offset, newValue); 289 return (V)unsafe.getObjectVolatile(obj, offset);
|
/openjdk7/jdk/src/share/classes/java/util/concurrent/locks/ |
H A D | LockSupport.java | 124 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:LockSupport 129 parkBlockerOffset = unsafe.objectFieldOffset 136 unsafe.putObject(t, parkBlockerOffset, arg); 152 unsafe.unpark(thread); 186 unsafe.park(false, 0L); 226 unsafe.park(false, nanos); 267 unsafe.park(true, deadline); 286 return unsafe.getObjectVolatile(t, parkBlockerOffset); 315 unsafe.park(false, 0L); 349 unsafe [all...] |
/openjdk7/jdk/src/windows/classes/sun/nio/ch/ |
H A D | PendingIoCache.java | 38 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:PendingIoCache 39 private static final int addressSize = unsafe.addressSize(); 81 ov = unsafe.allocateMemory(SIZEOF_OVERLAPPED); 97 unsafe.freeMemory(overlapped); 119 unsafe.freeMemory( overlappedCache[--overlappedCacheCount] );
|
/openjdk7/jdk/src/share/classes/sun/security/provider/ |
H A D | ByteArrayAccess.java | 64 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:ByteArrayAccess 76 private final static int byteArrayOfs = unsafe.arrayBaseOffset(byte[].class); 79 boolean scaleOK = ((unsafe.arrayIndexScale(byte[].class) == 1) 80 && (unsafe.arrayIndexScale(int[].class) == 4) 81 && (unsafe.arrayIndexScale(long[].class) == 8) 110 out[outOfs++] = unsafe.getInt(in, (long)inOfs); 117 out[outOfs++] = reverseBytes(unsafe.getInt(in, (long)inOfs)); 136 out[ 0] = unsafe.getInt(in, (long)(inOfs )); 137 out[ 1] = unsafe.getInt(in, (long)(inOfs + 4)); 138 out[ 2] = unsafe [all...] |
/openjdk7/jdk/test/sun/misc/ |
H A D | CopyMemory.java | 26 * @summary Minimal test for unsafe.copyMemory() and unsafe.setMemory() 62 private static void set(Unsafe unsafe, long addr, int ofs, int len, int value) { argument 64 unsafe.putByte(null, addr + ofs + i, (byte)value); 68 private static void check(Unsafe unsafe, long addr, int ofs, int len, int value) { argument 70 int r = unsafe.getByte(null, addr + ofs + i) & 0xff; 88 private static void testSetByteArray(Unsafe unsafe) throws Exception { argument 96 unsafe.setMemory(b, Unsafe.ARRAY_BYTE_BASE_OFFSET + ofs, len, (byte)val); 103 private static void testSetRawMemory(Unsafe unsafe) throws Exception { argument 107 set(unsafe, 118 testCopyByteArrayToByteArray(Unsafe unsafe) argument 138 testCopyByteArrayToRawMemory(Unsafe unsafe) argument 158 testCopyRawMemoryToByteArray(Unsafe unsafe) argument 178 testCopyRawMemoryToRawMemory(Unsafe unsafe) argument [all...] |
/openjdk7/jdk/src/solaris/classes/sun/nio/fs/ |
H A D | LinuxUserDefinedFileAttributeView.java | 44 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:LinuxUserDefinedFileAttributeView 70 if (unsafe.getByte(address + pos) == 0) { 73 unsafe.copyMemory(null, address+start, value, 187 unsafe.copyMemory(null, address, dst.array(), off, n); 228 unsafe.copyMemory(src.array(), off, null, address, rem); 234 unsafe.copyMemory(tmp, Unsafe.ARRAY_BYTE_BASE_OFFSET, null, 313 if (unsafe.getByte(address + pos) == 0) { 319 unsafe.copyMemory(null, address+start, name,
|
H A D | SolarisAclFileAttributeView.java | 47 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:SolarisAclFileAttributeView 188 unsafe.putInt(offset + OFFSETOF_UID, uid); 189 unsafe.putInt(offset + OFFSETOF_MASK, mask); 190 unsafe.putShort(offset + OFFSETOF_FLAGS, (short)flags); 191 unsafe.putShort(offset + OFFSETOF_TYPE, (short)type); 205 int uid = unsafe.getInt(offset + OFFSETOF_UID); 206 int mask = unsafe.getInt(offset + OFFSETOF_MASK); 207 int flags = (int)unsafe.getShort(offset + OFFSETOF_FLAGS); 208 int type = (int)unsafe.getShort(offset + OFFSETOF_TYPE); 314 long address = unsafe [all...] |
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/runtime/ |
H A D | VFrame.java | 47 /** Factory method for creating vframes. The "unsafe" flag turns off 53 public static VFrame newVFrame(Frame f, RegisterMap regMap, JavaThread thread, boolean unsafe, boolean mayBeImprecise) { argument 60 if (unsafe) { 84 return newVFrame(s, tempMap, thread, unsafe, false); 94 calling the above version with the "unsafe" and "imprecise"
|
/openjdk7/jdk/src/share/classes/java/util/ |
H A D | Random.java | 570 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:Random 574 seedOffset = unsafe.objectFieldOffset 579 unsafe.putObjectVolatile(this, seedOffset, new AtomicLong(seedVal));
|