8151724: Remove -XX:GenerateCompilerNullChecks
Removed the broken GenerateCompilerNullChecks flag. Reviewed-by: zmajo, kvn
This commit is contained in:
parent
edee2ddca8
commit
9ee03a4b4f
@ -556,17 +556,16 @@ void LIR_Assembler::emit_op1(LIR_Op1* op) {
|
||||
leal(op->in_opr(), op->result_opr());
|
||||
break;
|
||||
|
||||
case lir_null_check:
|
||||
if (GenerateCompilerNullChecks) {
|
||||
ImplicitNullCheckStub* stub = add_debug_info_for_null_check_here(op->info());
|
||||
case lir_null_check: {
|
||||
ImplicitNullCheckStub* stub = add_debug_info_for_null_check_here(op->info());
|
||||
|
||||
if (op->in_opr()->is_single_cpu()) {
|
||||
_masm->null_check(op->in_opr()->as_register(), stub->entry());
|
||||
} else {
|
||||
Unimplemented();
|
||||
}
|
||||
if (op->in_opr()->is_single_cpu()) {
|
||||
_masm->null_check(op->in_opr()->as_register(), stub->entry());
|
||||
} else {
|
||||
Unimplemented();
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case lir_monaddr:
|
||||
monitor_address(op->in_opr()->as_constant_ptr()->as_jint(), op->result_opr());
|
||||
|
@ -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())));
|
||||
}
|
||||
|
@ -1190,11 +1190,6 @@ Node* GraphKit::null_check_common(Node* value, BasicType type,
|
||||
bool speculative) {
|
||||
assert(!assert_null || null_control == NULL, "not both at once");
|
||||
if (stopped()) return top();
|
||||
if (!GenerateCompilerNullChecks && !assert_null && null_control == NULL) {
|
||||
// For some performance testing, we may wish to suppress null checking.
|
||||
value = cast_not_null(value); // Make it appear to be non-null (4962416).
|
||||
return value;
|
||||
}
|
||||
NOT_PRODUCT(explicit_null_checks_inserted++);
|
||||
|
||||
// Construct NULL check
|
||||
|
@ -2516,9 +2516,6 @@ public:
|
||||
"generate locking/unlocking code for synchronized methods and " \
|
||||
"monitors") \
|
||||
\
|
||||
develop(bool, GenerateCompilerNullChecks, true, \
|
||||
"Generate explicit null checks for loads/stores/calls") \
|
||||
\
|
||||
develop(bool, GenerateRangeChecks, true, \
|
||||
"Generate range checks for array accesses") \
|
||||
\
|
||||
|
Loading…
x
Reference in New Issue
Block a user