mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 03:54:33 +02:00
8151724: Remove -XX:GenerateCompilerNullChecks
Removed the broken GenerateCompilerNullChecks flag. Reviewed-by: zmajo, kvn
This commit is contained in:
parent
edee2ddca8
commit
9ee03a4b4f
4 changed files with 8 additions and 18 deletions
|
@ -2041,8 +2041,7 @@ void LIRGenerator::do_Throw(Throw* x) {
|
|||
// to avoid a fixed interval with an oop during the null check.
|
||||
// Use a copy of the CodeEmitInfo because debug information is
|
||||
// different for null_check and throw.
|
||||
if (GenerateCompilerNullChecks &&
|
||||
(x->exception()->as_NewInstance() == NULL && x->exception()->as_ExceptionObject() == NULL)) {
|
||||
if (x->exception()->as_NewInstance() == NULL && x->exception()->as_ExceptionObject() == NULL) {
|
||||
// if the exception object wasn't created using new then it might be null.
|
||||
__ null_check(exception_opr, new CodeEmitInfo(info, x->state()->copy(ValueStack::ExceptionState, x->state()->bci())));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue