public final class SpeculationReasonGroup extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
SpeculationReasonGroup.SpeculationContextObject
|
Constructor and Description |
---|
SpeculationReasonGroup(String name,
Class<?>... signature)
Creates a speculation group whose context will always match
signature . |
Modifier and Type | Method and Description |
---|---|
SpeculationReason |
createSpeculationReason(Object... context)
Creates a speculation reason described by this group.
|
String |
toString() |
public SpeculationReasonGroup(String name, Class<?>... signature)
signature
.
This constructor is deleted in libgraal to ensure group ids are allocated during build time.
Without this invariant, it would possible for 2 different groups to have the same id if the
groups are allocated in different libgraal isolates (since static variables are
isolate-local).public SpeculationReason createSpeculationReason(Object... context)
context
- the components of the reason instance being created