Class UnsafeAccess
java.lang.Object
com.github.benmanes.caffeine.base.UnsafeAccess
Deprecated.
Scheduled for removal in version 3.0.0
Static access to
Unsafe
and convenient utility methods for performing low-level, unsafe
operations.
Warning: This class is scheduled for removal in version 3.0.0.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ANDROID
Deprecated.- See Also:
-
OPEN_JDK
Deprecated.- See Also:
-
UNSAFE
public static final sun.misc.Unsafe UNSAFEDeprecated.The Unsafe instance.
-
-
Constructor Details
-
UnsafeAccess
private UnsafeAccess()Deprecated.
-
-
Method Details
-
objectFieldOffset
Deprecated.Returns the location of a given static field.- Parameters:
clazz
- the class containing the fieldfieldName
- the name of the field- Returns:
- the address offset of the field
-
load
static sun.misc.Unsafe load(String openJdk, String android) throws NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException Deprecated.
-