8213199: GC abstraction for Assembler::needs_explicit_null_check()

Reviewed-by: adinn, eosterlund
This commit is contained in:
Roman Kennke 2018-11-08 23:31:08 +01:00
parent 7724fd6d9b
commit 7c3f2b06f1
19 changed files with 56 additions and 30 deletions

View file

@ -431,7 +431,7 @@ JVM_handle_linux_signal(int sig,
// SIGSEGV-based implicit null check in compiled code.
else if (sig == SIGSEGV && ImplicitNullChecks &&
CodeCache::contains((void*) pc) &&
!MacroAssembler::needs_explicit_null_check((intptr_t) info->si_addr)) {
MacroAssembler::uses_implicit_null_check(info->si_addr)) {
if (TraceTraps) {
tty->print_cr("trap: null_check at " INTPTR_FORMAT " (SIGSEGV)", p2i(pc));
}