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
--- 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);