public final class IdentityHashCodeSupport extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.graalvm.word.LocationIdentity |
IDENTITY_HASHCODE_LOCATION |
| Constructor and Description |
|---|
IdentityHashCodeSupport() |
| Modifier and Type | Method and Description |
|---|---|
static void |
ensureInitialized()
Initialization can require synchronization which is not allowed during safepoints, so this
method can be called before using identity hash codes during a safepoint operation.
|
static int |
generateIdentityHashCode(Object obj,
int hashCodeOffset) |
static int |
getHashCodeOffset(Object obj) |
public static final org.graalvm.word.LocationIdentity IDENTITY_HASHCODE_LOCATION
public static void ensureInitialized()
public static int generateIdentityHashCode(Object obj, int hashCodeOffset)
public static int getHashCodeOffset(Object obj)