8008340: [sampling] assert(upper->pc_offset() >= pc_offset) failed: sanity
authorrbackman
Tue, 26 Feb 2013 14:09:52 +0100
changeset 15801 fefae82e1067
parent 15800 55dcad6bc1a5
child 15802 bc8dab3bb5f9
child 15847 f9ce2cd20dee
child 15848 a7b244c71903
8008340: [sampling] assert(upper->pc_offset() >= pc_offset) failed: sanity Reviewed-by: kvn, sla
hotspot/src/cpu/sparc/vm/frame_sparc.cpp
hotspot/src/cpu/x86/vm/frame_x86.cpp
--- a/hotspot/src/cpu/sparc/vm/frame_sparc.cpp	Fri Feb 22 10:16:51 2013 -0800
+++ b/hotspot/src/cpu/sparc/vm/frame_sparc.cpp	Tue Feb 26 14:09:52 2013 +0100
@@ -216,6 +216,11 @@
       }
     }
 
+    // Could just be some random pointer within the codeBlob
+    if (!_cb->code_contains(_pc)) {
+      return false;
+    }
+
     // Entry frame checks
     if (is_entry_frame()) {
       // an entry frame must have a valid fp.
--- a/hotspot/src/cpu/x86/vm/frame_x86.cpp	Fri Feb 22 10:16:51 2013 -0800
+++ b/hotspot/src/cpu/x86/vm/frame_x86.cpp	Tue Feb 26 14:09:52 2013 +0100
@@ -91,6 +91,12 @@
         return false;
       }
     }
+
+    // Could just be some random pointer within the codeBlob
+    if (!_cb->code_contains(_pc)) {
+      return false;
+    }
+
     // Entry frame checks
     if (is_entry_frame()) {
       // an entry frame must have a valid fp.