mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +02:00
8028471: PPC64 (part 215): opto: Extend ImplicitNullCheck optimization
Fixed Implicit NULL check optimization for AIX, where the page at address '0' is only write-protected. Reviewed-by: kvn
This commit is contained in:
parent
aabed3781b
commit
a7c123880e
11 changed files with 65 additions and 8 deletions
|
@ -201,7 +201,7 @@ JVMState* VirtualCallGenerator::generate(JVMState* jvms, Parse* parent_parser) {
|
|||
// Block::implicit_null_check() only looks for loads and stores, not calls.
|
||||
ciMethod *caller = kit.method();
|
||||
ciMethodData *caller_md = (caller == NULL) ? NULL : caller->method_data();
|
||||
if (!UseInlineCaches || !ImplicitNullChecks ||
|
||||
if (!UseInlineCaches || !ImplicitNullChecks || !os::zero_page_read_protected() ||
|
||||
((ImplicitNullCheckThreshold > 0) && caller_md &&
|
||||
(caller_md->trap_count(Deoptimization::Reason_null_check)
|
||||
>= (uint)ImplicitNullCheckThreshold))) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue