InstalledCode
for code installed as an nmethod
. The address of
the nmethod
is stored in InstalledCode#address
and the value of
nmethod::verified_entry_point()
is in InstalledCode#entryPoint
.
Modifier and Type | Field and Description |
---|---|
private final long | compileIdSnapshot
If this field is 0, this object is in the oops table of the nmethod. |
private final boolean | |
private final HotSpotResolvedJavaMethodImpl | method
This (indirect) |
private HotSpotSpeculationLog | speculationLog
The speculation log containing speculations embedded in the nmethod. |
Access | Constructor and Description |
---|---|
pack-priv | HotSpotNmethod(HotSpotResolvedJavaMethodImpl method, String name, boolean isDefault, long compileId)
|
Modifier and Type | Method and Description |
---|---|
private boolean | |
public Object | executeVarargs(Object...
the array of object arguments args)Overrides jdk. Executes the installed code with a variable number of arguments. |
public long | |
public long | |
public ResolvedJavaMethod | |
public long | getStart()
Overrides jdk. Gets the value of |
pack-priv boolean | |
public void | invalidate(boolean
if deoptimize)true , all existing invocations will be immediately deoptimized.
If false , any existing invocation will continue until it completes or
there is a subsequent call to this method with deoptimize == true before
the invocation completes.Overrides jdk. Invalidates this installed code such that any subsequent
invocation will throw an
|
public boolean | isDefault()
Determines if the nmethod associated with this object is the compiled entry point for
|
public boolean | |
public void | |
public String | toString()
Implements abstract jdk. Returns a string representation of the object. |
compileIdSnapshot | back to summary |
---|---|
private final long compileIdSnapshot If this field is 0, this object is in the oops table of the nmethod. Otherwise, the value of
the field records the nmethod's compile identifier. This value is used to confirm if an entry
in the code cache retrieved by
|
isDefault | back to summary |
---|---|
private final boolean isDefault Specifies whether the |
method | back to summary |
---|---|
private final HotSpotResolvedJavaMethodImpl method This (indirect) |
speculationLog | back to summary |
---|---|
private HotSpotSpeculationLog speculationLog The speculation log containing speculations embedded in the nmethod.
If
|
HotSpotNmethod | back to summary |
---|---|
pack-priv HotSpotNmethod(HotSpotResolvedJavaMethodImpl method, String name, boolean isDefault, long compileId) |
checkArgs | back to summary |
---|---|
private boolean checkArgs(Object... args) |
executeVarargs | back to summary |
---|---|
public Object executeVarargs(Object... args) throws InvalidInstalledCodeException Overrides jdk. Doc from jdk. Executes the installed code with a variable number of arguments.
It's possible for the HotSpot runtime to sweep nmethods at any point in time. As a result,
there is no guarantee that calling this method will execute the wrapped nmethod. Instead, it
may end up executing the bytecode of the associated |
getAddress | back to summary |
---|---|
public long getAddress() Overrides jdk.
|
getEntryPoint | back to summary |
---|---|
public long getEntryPoint() Overrides jdk.
|
getMethod | back to summary |
---|---|
public ResolvedJavaMethod getMethod() |
getStart | back to summary |
---|---|
public long getStart() Overrides jdk. Doc from jdk. Gets the value of
|
inOopsTable | back to summary |
---|---|
pack-priv boolean inOopsTable() Determines whether this object is in the oops table of the nmethod.
If this object is in the oops table, the VM uses the oops table entry to update this object's
Otherwise, the nmethod's unloadability is not changed when this object dies. |
invalidate | back to summary |
---|---|
public void invalidate(boolean deoptimize) Overrides jdk. Doc from jdk. Invalidates this installed code such that any subsequent
invocation will throw an
|
isDefault | back to summary |
---|---|
public boolean isDefault() Determines if the nmethod associated with this object is the compiled entry point for
|
isValid | back to summary |
---|---|
public boolean isValid() Overrides jdk.
|
setSpeculationLog | back to summary |
---|---|
public void setSpeculationLog(HotSpotSpeculationLog log) Attaches |
toString | back to summary |
---|---|
public String toString() Implements abstract jdk. Doc from java. Returns a string representation of the object. |