diff src/share/vm/runtime/vframe_hp.cpp @ 903:15bbd3f505c0

Merge
author kvn
date Thu, 06 Aug 2009 09:37:26 -0700
parents bd02caa94611 9987d9d5eb0e
children c18cbe5936b8
line wrap: on
line diff
--- a/src/share/vm/runtime/vframe_hp.cpp	Wed Aug 05 18:54:12 2009 -0700
+++ b/src/share/vm/runtime/vframe_hp.cpp	Thu Aug 06 09:37:26 2009 -0700
@@ -276,6 +276,15 @@
   return scope()->bci();
 }
 
+bool compiledVFrame::should_reexecute() const {
+  if (scope() == NULL) {
+    // native nmethods have no scope the method/bci is implied
+    nmethod* nm = code();
+    assert(nm->is_native_method(), "must be native");
+    return false;
+  }
+  return scope()->should_reexecute();
+}
 
 vframe* compiledVFrame::sender() const {
   const frame f = fr();