diff -r 878d6bf3d038 src/cpu/ppc/vm/interpreter_ppc.cpp
--- openjdk/hotspot/src/cpu/ppc/vm/interpreter_ppc.cpp Tue Feb 03 11:32:50 2015 +0100
+++ openjdk/hotspot/src/cpu/ppc/vm/interpreter_ppc.cpp Wed Apr 22 11:36:38 2015 +0200
@@ -475,7 +475,7 @@
// This is not a leaf but we have a JavaFrameAnchor now and we will
// check (create) exceptions afterward so this is ok.
- __ call_VM_leaf(CAST_FROM_FN_PTR(address, InterpreterRuntime::throw_AbstractMethodError));
+ __ call_VM_leaf(CAST_FROM_FN_PTR(address, InterpreterRuntime::throw_AbstractMethodError), R16_thread);
// Pop the C frame and restore LR.
__ pop_frame();
diff -r 878d6bf3d038 src/os_cpu/linux_ppc/vm/os_linux_ppc.cpp
--- openjdk/hotspot/src/os_cpu/linux_ppc/vm/os_linux_ppc.cpp Tue Feb 03 11:32:50 2015 +0100
+++ openjdk/hotspot/src/os_cpu/linux_ppc/vm/os_linux_ppc.cpp Wed Apr 22 11:36:38 2015 +0200
@@ -302,6 +302,7 @@
goto report_and_die;
}
+ CodeBlob *cb = NULL;
// Handle signal from NativeJump::patch_verified_entry().
if (( TrapBasedNotEntrantChecks && sig == SIGTRAP && nativeInstruction_at(pc)->is_sigtrap_zombie_not_entrant()) ||
(!TrapBasedNotEntrantChecks && sig == SIGILL && nativeInstruction_at(pc)->is_sigill_zombie_not_entrant())) {
@@ -316,7 +317,10 @@
// especially when we try to read from the safepoint polling page. So the check
// (address)info->si_addr == os::get_standard_polling_page()
// doesn't work for us. We use:
- ((NativeInstruction*)pc)->is_safepoint_poll()) {
+ ((NativeInstruction*)pc)->is_safepoint_poll() &&
+ CodeCache::contains((void*) pc) &&
+ ((cb = CodeCache::find_blob(pc)) != NULL) &&
+ cb->is_nmethod()) {
if (TraceTraps)
tty->print_cr("trap: safepoint_poll at " INTPTR_FORMAT " (SIGSEGV)", pc);
stub = SharedRuntime::get_poll_stub(pc);