public class DeoptTester extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DeoptTester.Options |
Modifier and Type | Field and Description |
---|---|
static SnippetRuntime.SubstrateForeignCallDescriptor |
DEOPTTEST |
Constructor and Description |
---|
DeoptTester() |
Modifier and Type | Method and Description |
---|---|
static void |
deoptTest()
Scans the stack frames and if there are some new (= so far not seen) PCs inside deoptimizable
methods, a deopt is done.
|
static void |
disableDeoptTesting()
Temporarily disable deopt testing.
|
static boolean |
enabled() |
static void |
enableDeoptTesting() |
public static final SnippetRuntime.SubstrateForeignCallDescriptor DEOPTTEST
public static boolean enabled()
public static void deoptTest()
DeoptTester.DEOPTTEST
.public static void disableDeoptTesting()
DeoptTester.enableDeoptTesting()
,
best placed in a finally
block. Only use this in code where Uninterruptible
cannot be used and to which the checks in DeoptTester.deoptTest()
do not apply.public static void enableDeoptTesting()