Utility methods allowing easy access to certain sun.misc.Unsafe functionality.
More...
|
| static boolean | hasInvokeCleaner () |
| | Returns true if sun.misc.Unsafe.invokeCleaner(java.nio.ByteBuffer) is available and has not caused an exception. More...
|
| |
| static boolean | invokeCleaner (final ByteBuffer bb) |
| | Access to sun.misc.Unsafe.invokeCleaner(java.nio.ByteBuffer). More...
|
| |
| static long | staticFieldOffset (final Field f) |
| |
| static long | objectFieldOffset (final Field f) |
| |
| static Object | getObject (final Object o, final long offset) |
| |
| static void | putObject (final Object o, final long offset, final Object x) |
| |
| static Object | getObjectVolatile (final Object o, final long offset) |
| |
| static void | putObjectVolatile (final Object o, final long offset, final Object x) |
| |
| static long | getLong (final Object o, final long offset) |
| |
| static void | putLong (final Object o, final long offset, final long x) |
| |
| static long | getLong (final long address) |
| |
| static void | putLong (final long address, final long x) |
| |
| static long | getDirectBufferAddress (final Buffer buffer) |
| |
| static boolean | hasIllegalAccessLoggerAccess () |
| | Returns true if access to jdk.internal.module.IllegalAcessLogger's logger field is available and has not caused an exception. More...
|
| |
| static< T > T | doWithoutIllegalAccessLogger (final PrivilegedAction< T > action) throws RuntimeException |
| | Issue the given user action while jdk.internal.module.IllegalAcessLogger's logger has been temporarily disabled. More...
|
| |
Utility methods allowing easy access to certain sun.misc.Unsafe functionality.
Definition at line 46 of file UnsafeUtil.java.
◆ UnsafeUtil()
| com.jogamp.common.util.UnsafeUtil.UnsafeUtil |
( |
| ) |
|
|
protected |
◆ doWithoutIllegalAccessLogger()
| static< T > T com.jogamp.common.util.UnsafeUtil.doWithoutIllegalAccessLogger |
( |
final PrivilegedAction< T > |
action | ) |
throws RuntimeException |
|
static |
◆ getDirectBufferAddress()
| static long com.jogamp.common.util.UnsafeUtil.getDirectBufferAddress |
( |
final Buffer |
buffer | ) |
|
|
static |
◆ getLong() [1/2]
| static long com.jogamp.common.util.UnsafeUtil.getLong |
( |
final long |
address | ) |
|
|
static |
◆ getLong() [2/2]
| static long com.jogamp.common.util.UnsafeUtil.getLong |
( |
final Object |
o, |
|
|
final long |
offset |
|
) |
| |
|
static |
◆ getObject()
| static Object com.jogamp.common.util.UnsafeUtil.getObject |
( |
final Object |
o, |
|
|
final long |
offset |
|
) |
| |
|
static |
◆ getObjectVolatile()
| static Object com.jogamp.common.util.UnsafeUtil.getObjectVolatile |
( |
final Object |
o, |
|
|
final long |
offset |
|
) |
| |
|
static |
◆ hasIllegalAccessLoggerAccess()
| static boolean com.jogamp.common.util.UnsafeUtil.hasIllegalAccessLoggerAccess |
( |
| ) |
|
|
static |
Returns true if access to jdk.internal.module.IllegalAcessLogger's logger field is available and has not caused an exception.
- See also
- #doWithoutIllegalAccessLogger(PrivilegedAction)
Definition at line 340 of file UnsafeUtil.java.
◆ hasInvokeCleaner()
| static boolean com.jogamp.common.util.UnsafeUtil.hasInvokeCleaner |
( |
| ) |
|
|
static |
◆ invokeCleaner()
| static boolean com.jogamp.common.util.UnsafeUtil.invokeCleaner |
( |
final ByteBuffer |
bb | ) |
|
|
static |
◆ objectFieldOffset()
| static long com.jogamp.common.util.UnsafeUtil.objectFieldOffset |
( |
final Field |
f | ) |
|
|
static |
◆ putLong() [1/2]
| static void com.jogamp.common.util.UnsafeUtil.putLong |
( |
final long |
address, |
|
|
final long |
x |
|
) |
| |
|
static |
◆ putLong() [2/2]
| static void com.jogamp.common.util.UnsafeUtil.putLong |
( |
final Object |
o, |
|
|
final long |
offset, |
|
|
final long |
x |
|
) |
| |
|
static |
◆ putObject()
| static void com.jogamp.common.util.UnsafeUtil.putObject |
( |
final Object |
o, |
|
|
final long |
offset, |
|
|
final Object |
x |
|
) |
| |
|
static |
◆ putObjectVolatile()
| static void com.jogamp.common.util.UnsafeUtil.putObjectVolatile |
( |
final Object |
o, |
|
|
final long |
offset, |
|
|
final Object |
x |
|
) |
| |
|
static |
◆ staticFieldOffset()
| static long com.jogamp.common.util.UnsafeUtil.staticFieldOffset |
( |
final Field |
f | ) |
|
|
static |
The documentation for this class was generated from the following file: