public final class HotSpotExceptionDispatchPlugin extends Object implements NodePlugin
JavaThread.should_post_on_exceptions flag to see exceptions must be reported for the
current thread.| Modifier and Type | Class and Description |
|---|---|
static class |
HotSpotExceptionDispatchPlugin.Options |
| Constructor and Description |
|---|
HotSpotExceptionDispatchPlugin(GraalHotSpotVMConfig config,
JavaKind wordKind) |
| Modifier and Type | Method and Description |
|---|---|
FixedWithNextNode |
instrumentExceptionDispatch(StructuredGraph graph,
FixedWithNextNode afterExceptionLoaded,
Supplier<FrameState> frameStateFunction)
Allows this plugin to add nodes after the exception object has been loaded in the dispatch
sequence.
|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanChangeStackKind, convertInvokeDynamic, handleCheckCast, handleInstanceOf, handleInvoke, handleLoadField, handleLoadIndexed, handleLoadStaticField, handleNewArray, handleNewInstance, handleNewMultiArray, handleStoreField, handleStoreIndexed, handleStoreStaticFieldpublic HotSpotExceptionDispatchPlugin(GraalHotSpotVMConfig config, JavaKind wordKind)
public FixedWithNextNode instrumentExceptionDispatch(StructuredGraph graph, FixedWithNextNode afterExceptionLoaded, Supplier<FrameState> frameStateFunction)
NodePluginStructuredGraph is provided to this call instead of a
GraphBuilderContext so that the caller has a guarantee that its current control flow
insertion point is not changed by this call. This means nodes must be added to the graph with
the appropriate method (e.g., Graph.unique(T) for Node.ValueNumberable
nodes) and fixed nodes must be manually added as
successors of afterExceptionLoaded.
The reason for this constraint is that when this plugin runs, it's inserting instructions
into a different block than the one currently being parsed.instrumentExceptionDispatch in interface NodePlugingraph - the graph being parsedafterExceptionLoaded - the last fixed node after loading the exceptionframeStateFunction - a helper that produces a FrameState suitable for deopt