public static enum AgentBuilder.LambdaInstrumentationStrategy.LambdaMetafactoryFactory.Loader.UsingUnsafe extends Enum<AgentBuilder.LambdaInstrumentationStrategy.LambdaMetafactoryFactory.Loader.UsingUnsafe> implements AgentBuilder.LambdaInstrumentationStrategy.LambdaMetafactoryFactory.Loader
Unsafe unsafe = Unsafe.getUnsafe();Class<?>
lambdaClass = unsafe.defineAnonymousClass(caller.lookupClass(), binaryRepresentation, null); unsafe.ensureClassInitialized(lambdaClass);
AgentBuilder.LambdaInstrumentationStrategy.LambdaMetafactoryFactory.Loader.Unavailable, AgentBuilder.LambdaInstrumentationStrategy.LambdaMetafactoryFactory.Loader.UsingMethodHandleLookup, AgentBuilder.LambdaInstrumentationStrategy.LambdaMetafactoryFactory.Loader.UsingUnsafe
Enum Constant and Description |
---|
JDK_INTERNAL_MISC_UNSAFE
A loader that uses
jdk.internal.misc.Unsafe . |
SUN_MISC_UNSAFE
A loader that uses
sun.misc.Unsafe . |
Modifier and Type | Method and Description |
---|---|
void |
apply(MethodVisitor methodVisitor)
Applies this loader.
|
int |
getLocalVariableLength()
Returns the local variable length that is required to implement this loader.
|
int |
getStackSize()
Returns the stack size that is required to implement this loader.
|
protected String |
getType()
Returns the internal name of the unsafe type.
|
static AgentBuilder.LambdaInstrumentationStrategy.LambdaMetafactoryFactory.Loader.UsingUnsafe |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AgentBuilder.LambdaInstrumentationStrategy.LambdaMetafactoryFactory.Loader.UsingUnsafe[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AgentBuilder.LambdaInstrumentationStrategy.LambdaMetafactoryFactory.Loader.UsingUnsafe JDK_INTERNAL_MISC_UNSAFE
jdk.internal.misc.Unsafe
.public static final AgentBuilder.LambdaInstrumentationStrategy.LambdaMetafactoryFactory.Loader.UsingUnsafe SUN_MISC_UNSAFE
sun.misc.Unsafe
.public static AgentBuilder.LambdaInstrumentationStrategy.LambdaMetafactoryFactory.Loader.UsingUnsafe[] values()
for (AgentBuilder.LambdaInstrumentationStrategy.LambdaMetafactoryFactory.Loader.UsingUnsafe c : AgentBuilder.LambdaInstrumentationStrategy.LambdaMetafactoryFactory.Loader.UsingUnsafe.values()) System.out.println(c);
public static AgentBuilder.LambdaInstrumentationStrategy.LambdaMetafactoryFactory.Loader.UsingUnsafe valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullprotected String getType()
public void apply(MethodVisitor methodVisitor)
apply
in interface AgentBuilder.LambdaInstrumentationStrategy.LambdaMetafactoryFactory.Loader
methodVisitor
- The method visitor to use.public int getStackSize()
getStackSize
in interface AgentBuilder.LambdaInstrumentationStrategy.LambdaMetafactoryFactory.Loader
public int getLocalVariableLength()
getLocalVariableLength
in interface AgentBuilder.LambdaInstrumentationStrategy.LambdaMetafactoryFactory.Loader
Copyright © 2014–2023. All rights reserved.