8066803: compiler/intrinsics/mathexact/SubExactINonConstantTest.java crashed in os::is_first_C_frame(frame*)
authorcoleenp
Fri, 12 Dec 2014 13:19:33 -0500
changeset 28166 e42212b64568
parent 28023 a4075664328d
child 28167 f5a0bd510868
8066803: compiler/intrinsics/mathexact/SubExactINonConstantTest.java crashed in os::is_first_C_frame(frame*) Summary: Stop native stack walk when we get to compiled or stub frame. Reviewed-by: hseigel, lfoltan, ctornqvi
hotspot/src/os/posix/vm/os_posix.cpp
--- a/hotspot/src/os/posix/vm/os_posix.cpp	Mon Dec 08 00:15:55 2014 -0800
+++ b/hotspot/src/os/posix/vm/os_posix.cpp	Fri Dec 12 13:19:33 2014 -0500
@@ -89,8 +89,8 @@
     } else {
       stack[frame_idx ++] = fr.pc();
     }
-    if (fr.fp() == NULL || os::is_first_C_frame(&fr)
-        ||fr.sender_pc() == NULL || fr.cb() != NULL) break;
+    if (fr.fp() == NULL || fr.cb() != NULL ||
+        fr.sender_pc() == NULL || os::is_first_C_frame(&fr)) break;
 
     if (fr.sender_pc() && !os::is_first_C_frame(&fr)) {
       fr = os::get_sender_for_C_frame(&fr);