Home | History | Annotate | Download | only in misc

Lines Matching refs:offset

71      * Gets the raw byte offset from the start of an object's memory to
76 * @return the offset to the field
86 * Gets the offset from the start of an array object's memory to
90 * @return the offset to the initial element
124 * @param offset offset to the field within <code>obj</code>
132 public native boolean compareAndSwapInt(Object obj, long offset,
140 * @param offset offset to the field within <code>obj</code>
148 public native boolean compareAndSwapLong(Object obj, long offset,
156 * @param offset offset to the field within <code>obj</code>
164 public native boolean compareAndSwapObject(Object obj, long offset,
172 * @param offset offset to the field within <code>obj</code>
176 public native int getIntVolatile(Object obj, long offset);
183 * @param offset offset to the field within <code>obj</code>
187 public native void putIntVolatile(Object obj, long offset, int newValue);
194 * @param offset offset to the field within <code>obj</code>
198 public native long getLongVolatile(Object obj, long offset);
205 * @param offset offset to the field within <code>obj</code>
209 public native void putLongVolatile(Object obj, long offset, long newValue);
216 * @param offset offset to the field within <code>obj</code>
220 public native Object getObjectVolatile(Object obj, long offset);
227 * @param offset offset to the field within <code>obj</code>
231 public native void putObjectVolatile(Object obj, long offset,
238 * @param offset offset to the field within <code>obj</code>
242 public native int getInt(Object obj, long offset);
248 * @param offset offset to the field within <code>obj</code>
252 public native void putInt(Object obj, long offset, int newValue);
258 public native void putOrderedInt(Object obj, long offset, int newValue);
264 * @param offset offset to the field within <code>obj</code>
268 public native long getLong(Object obj, long offset);
274 * @param offset offset to the field within <code>obj</code>
278 public native void putLong(Object obj, long offset, long newValue);
284 public native void putOrderedLong(Object obj, long offset, long newValue);
290 * @param offset offset to the field within <code>obj</code>
294 public native Object getObject(Object obj, long offset);
300 * @param offset offset to the field within <code>obj</code>
304 public native void putObject(Object obj, long offset, Object newValue);
310 public native void putOrderedObject(Object obj, long offset,
315 public native boolean getBoolean(Object obj, long offset);
317 public native void putBoolean(Object obj, long offset, boolean newValue);
319 public native byte getByte(Object obj, long offset);
321 public native void putByte(Object obj, long offset, byte newValue);
323 public native char getChar(Object obj, long offset);
325 public native void putChar(Object obj, long offset, char newValue);
327 public native short getShort(Object obj, long offset);
329 public native void putShort(Object obj, long offset, short newValue);
331 public native float getFloat(Object obj, long offset);
333 public native void putFloat(Object obj, long offset, float newValue);
335 public native double getDouble(Object obj, long offset);
337 public native void putDouble(Object obj, long offset, double newValue);
459 * at the given {@code offset}.
462 * @param offset field/element offset
468 public final int getAndAddInt(Object o, long offset, int delta) {
471 v = getIntVolatile(o, offset);
472 } while (!compareAndSwapInt(o, offset, v, v + delta));
479 * at the given {@code offset}.
482 * @param offset field/element offset
488 public final long getAndAddLong(Object o, long offset, long delta) {
491 v = getLongVolatile(o, offset);
492 } while (!compareAndSwapLong(o, offset, v, v + delta));
499 * at the given {@code offset}.
502 * @param offset field/element offset
508 public final int getAndSetInt(Object o, long offset, int newValue) {
511 v = getIntVolatile(o, offset);
512 } while (!compareAndSwapInt(o, offset, v, newValue));
519 * at the given {@code offset}.
522 * @param offset field/element offset
528 public final long getAndSetLong(Object o, long offset, long newValue) {
531 v = getLongVolatile(o, offset);
532 } while (!compareAndSwapLong(o, offset, v, newValue));
539 * object {@code o} at the given {@code offset}.
542 * @param offset field/element offset
548 public final Object getAndSetObject(Object o, long offset, Object newValue) {
551 v = getObjectVolatile(o, offset);
552 } while (!compareAndSwapObject(o, offset, v, newValue));