SimpleLinkRequest
public interface LinkRequest
GuardingDynamicLinker
objects managed by the DynamicLinker
that is trying to link the call site.Modifier and Type | Method | Description |
---|---|---|
Object[] |
getArguments() |
Returns the arguments for the invocation being linked. |
CallSiteDescriptor |
getCallSiteDescriptor() |
Returns the call site descriptor for the call site being linked. |
Object |
getReceiver() |
Returns the first argument for the invocation being linked; this is typically the receiver object. |
boolean |
isCallSiteUnstable() |
Returns true if the call site is considered unstable, that is, it has been relinked more times than was specified in DynamicLinkerFactory.setUnstableRelinkThreshold(int) . |
LinkRequest |
replaceArguments |
Returns a request identical to this one with call site descriptor and arguments replaced with the ones specified. |
CallSiteDescriptor getCallSiteDescriptor()
Object[] getArguments()
Object getReceiver()
getArguments()[0]
that also avoids the cloning of the arguments array.boolean isCallSiteUnstable()
DynamicLinkerFactory.setUnstableRelinkThreshold(int)
. Linkers should use this as a hint to prefer producing linkage that is more stable (its guard fails less frequently), even if that assumption causes a less effective version of an operation to be linked. This is just a hint, though, and linkers are allowed to ignore this property.LinkRequest replaceArguments(CallSiteDescriptor callSiteDescriptor, Object... arguments)
callSiteDescriptor
- the new call site descriptorarguments
- the new arguments
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/jdk.dynalink/jdk/dynalink/linker/LinkRequest.html