RelinkableCallSite as a
MutableCallSite. It carries a CallSiteDescriptor passed in
the constructor and provides the correct implementation of the
initialize(MethodHandle) method. Subclasses must provide
relink(GuardedInvocation, MethodHandle) and
resetAndRelink(GuardedInvocation, MethodHandle)
methods.
| Modifier and Type | Field and Description |
|---|---|
| private final CallSiteDescriptor |
| Access | Constructor and Description |
|---|---|
| protected | AbstractRelinkableCallSite(final CallSiteDescriptor
the descriptor for this call site that will be returned
from descriptor)getDescriptor(). The call site's CallSite#type()
will be equal to descriptor's CallSiteDescriptor#getMethodType().Creates a new abstract relinkable call site. |
| Modifier and Type | Method and Description |
|---|---|
| public CallSiteDescriptor | getDescriptor()
Implements jdk. Returns the descriptor for this call site. |
| public void | initialize(final MethodHandle relinkAndInvoke)
Implements jdk. Invoked by dynamic linker to initialize the relinkable call site by setting a relink-and-invoke method handle. |
| descriptor | back to summary |
|---|---|
| private final CallSiteDescriptor descriptor | |
| AbstractRelinkableCallSite | back to summary |
|---|---|
| protected AbstractRelinkableCallSite(final CallSiteDescriptor descriptor) Creates a new abstract relinkable call site.
| |
| getDescriptor | back to summary |
|---|---|
| public CallSiteDescriptor getDescriptor() Implements jdk. Doc from jdk. Returns the descriptor for this call site.
| |
| initialize | back to summary |
|---|---|
| public void initialize(final MethodHandle relinkAndInvoke) Implements jdk. Doc from jdk. Invoked by dynamic linker to initialize the relinkable call site by
setting a relink-and-invoke method handle. The call site implementation
is supposed to set this method handle as its target using
| |