changeset 7645:4e9283984ee1

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
author coleenp
date Fri, 12 Dec 2014 13:19:33 -0500
parents 35e222a277ba
children 5d08801f8858
files src/os/posix/vm/os_posix.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/os/posix/vm/os_posix.cpp	Mon Dec 08 00:15:55 2014 -0800
+++ b/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);