8150821: Crash with assert(!((nmethod*)_cb)->is_deopt_pc(_pc)) failed: invariant broken
Summary: Use different constructor on SPARC to fully initialize frame.
Reviewed-by: kvn
--- a/hotspot/src/os_cpu/solaris_sparc/vm/os_solaris_sparc.cpp Thu Mar 24 09:09:52 2016 +0100
+++ b/hotspot/src/os_cpu/solaris_sparc/vm/os_solaris_sparc.cpp Thu Mar 24 12:19:50 2016 +0100
@@ -277,7 +277,7 @@
return false;
} else {
*fr = os::fetch_frame_from_ucontext(thread, uc);
- *fr = frame(fr->sender_sp(), frame::unpatchable, fr->sender_pc());
+ *fr = frame(fr->sender_sp(), fr->sp());
if (!fr->is_java_frame()) {
assert(fr->safe_for_sender(thread), "Safety check");
*fr = fr->java_sender();