changeset 4210:ec2eddfed950

8008340: [sampling] assert(upper->pc_offset() >= pc_offset) failed: sanity Reviewed-by: kvn, sla
author rbackman
date Tue, 26 Feb 2013 14:09:52 +0100
parents 94478a033036
children 77f9b6d0126e 1f9994892f89 3c9db54c2660
files src/cpu/sparc/vm/frame_sparc.cpp src/cpu/x86/vm/frame_x86.cpp
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/cpu/sparc/vm/frame_sparc.cpp	Fri Feb 22 10:16:51 2013 -0800
+++ b/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/src/cpu/x86/vm/frame_x86.cpp	Fri Feb 22 10:16:51 2013 -0800
+++ b/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.