< prev index next >
src/java.base/share/classes/jdk/internal/misc/Unsafe.java
Print this page
*** 237,246 ****
--- 237,247 ----
* @param <V> the type of a value
* @return the value fetched from the indicated Java variable
* @throws RuntimeException No defined exceptions are thrown, not even
* {@link NullPointerException}
*/
+ @HotSpotIntrinsicCandidate
public native <V> V getValue(Object o, long offset, Class<?> vc);
/**
* Stores the given value into a given Java variable.
*
*** 256,265 ****
--- 257,267 ----
* @param v the value to store into the indicated Java variable
* @param <V> the type of a value
* @throws RuntimeException No defined exceptions are thrown, not even
* {@link NullPointerException}
*/
+ @HotSpotIntrinsicCandidate
public native <V> void putValue(Object o, long offset, Class<?> vc, V v);
/**
* Fetches a reference value of type {@code vc} from a given Java variable.
* This method can return a reference to a value or a null reference
*** 298,315 ****
--- 300,319 ----
* is in the larval state that can be updated using the unsafe put operation.
*
* @param value a value instance
* @param <V> the type of the given value instance
*/
+ @HotSpotIntrinsicCandidate
public native <V> V makePrivateBuffer(V value);
/**
* Exits the larval state and returns a value instance.
*
* @param value a value instance
* @param <V> the type of the given value instance
*/
+ @HotSpotIntrinsicCandidate
public native <V> V finishPrivateBuffer(V value);
/**
* Returns the header size of the given value class
*
< prev index next >