public class OptimizingCompilerException extends RuntimeException
Modifier and Type | Class and Description |
---|---|
static class |
OptimizingCompilerException.IllegalUpcast
Capture illegal upcasts from magic types to java.lang.Object
|
Modifier and Type | Field and Description |
---|---|
boolean |
isFatal
When running in the RVM, typically optimizing compiler
exceptions are caught, optionally a message is printed, and we
fallback to using the baseline compiler.
|
(package private) static long |
serialVersionUID
Support for exception serialization
|
Constructor and Description |
---|
OptimizingCompilerException() |
OptimizingCompilerException(boolean b) |
OptimizingCompilerException(String err) |
OptimizingCompilerException(String err,
boolean b) |
OptimizingCompilerException(String module,
String err) |
OptimizingCompilerException(String module,
String err1,
int val) |
OptimizingCompilerException(String module,
String err1,
Object obj) |
OptimizingCompilerException(String module,
String err1,
String err2) |
OptimizingCompilerException(String module,
String err1,
String err2,
int val) |
OptimizingCompilerException(String module,
String err1,
String err2,
Object obj) |
OptimizingCompilerException(String module,
String err1,
String err2,
String err3) |
Modifier and Type | Method and Description |
---|---|
static void |
opt_assert(boolean b)
Checks that the condition holds.
|
static void |
opt_assert(boolean b,
String message)
Checks that the condition holds.
|
static void |
TODO()
Incomplete function in IA32 port.
|
static void |
TODO(String module)
Incomplete function in IA32 port.
|
String |
trace(int level)
Return a string that is the printout of level stackframes in the stacktrace.
|
static void |
UNREACHABLE()
Use the UNREACHABLE methods to mark code that should never execute
e.g., unexpected cases of switch statements and nested if/then/else
|
static void |
UNREACHABLE(String module)
Use the UNREACHABLE methods to mark code that should never execute
e.g., unexpected cases of switch statements and nested if/then/else
|
static void |
UNREACHABLE(String module,
String err1)
Use the UNREACHABLE methods to mark code that should never execute
e.g., unexpected cases of switch statements and nested if/then/else
|
static void |
UNREACHABLE(String module,
String err1,
String err2)
Use the UNREACHABLE methods to mark code that should never execute
e.g., unexpected cases of switch statements and nested if/then/else
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
static final long serialVersionUID
public boolean isFatal
public OptimizingCompilerException()
public OptimizingCompilerException(boolean b)
b
- is the exception fatal?public OptimizingCompilerException(String err)
err
- message describing reason for exceptionpublic OptimizingCompilerException(String err, boolean b)
err
- message describing reason for exceptionb
- is the exception fatal?public OptimizingCompilerException(String module, String err)
module
- opt compiler module in which exception was raisederr
- message describing reason for exceptionpublic OptimizingCompilerException(String module, String err1, String err2)
module
- opt compiler module in which exception was raisederr1
- message describing reason for exceptionerr2
- message describing reason for exceptionpublic OptimizingCompilerException(String module, String err1, Object obj)
module
- opt compiler module in which exception was raisederr1
- message describing reason for exceptionobj
- object to print describing reason for exceptionpublic OptimizingCompilerException(String module, String err1, int val)
module
- opt compiler module in which exception was raisederr1
- message describing reason for exceptionval
- integer to print describing reason for exceptionpublic OptimizingCompilerException(String module, String err1, String err2, String err3)
module
- opt compiler module in which exception was raisederr1
- message describing reason for exceptionerr2
- message describing reason for exceptionerr3
- message describing reason for exceptionpublic OptimizingCompilerException(String module, String err1, String err2, Object obj)
module
- opt compiler module in which exception was raisederr1
- message describing reason for exceptionerr2
- message describing reason for exceptionobj
- object to print describing reason for exceptionOptimizingCompilerException(String module, String err1, String err2, int val)
module
- opt compiler module in which exception was raisederr1
- message describing reason for exceptionerr2
- message describing reason for exceptionval
- integer to print describing reason for exceptionpublic static void UNREACHABLE() throws OptimizingCompilerException
OptimizingCompilerException
- because the code is supposed
to be unreachablepublic static void UNREACHABLE(String module) throws OptimizingCompilerException
module
- module in which exception occurredOptimizingCompilerException
- because the code is supposed
to be unreachablepublic static void UNREACHABLE(String module, String err1) throws OptimizingCompilerException
module
- opt compiler module in which exception was raisederr1
- message describing reason for exceptionOptimizingCompilerException
- because the code is supposed
to be unreachablepublic static void UNREACHABLE(String module, String err1, String err2) throws OptimizingCompilerException
module
- opt compiler module in which exception was raisederr1
- message describing reason for exceptionerr2
- message describing reason for exceptionOptimizingCompilerException
- because the code is supposed
to be unreachablepublic static void TODO() throws OptimizingCompilerException
OptimizingCompilerException
- because the required functionality
is NYIpublic static void TODO(String module) throws OptimizingCompilerException
module
- opt compiler module in which exception was raisedOptimizingCompilerException
- because the required functionality
is NYIpublic static void opt_assert(boolean b)
OptimizingCompilerException
if the condition doesn't hold and assertions are enabled.
Use this in preference to normal assertions if it's possible to recover from the error by switching to the baseline compiler
b
- condition to checkpublic static void opt_assert(boolean b, String message)
OptimizingCompilerException
if the condition doesn't hold and assertions are enabled.
Use this in preference to normal assertions if it's possible to recover from the error by switching to the baseline compiler
b
- condition to checkmessage
- the message to print