hotspot/src/share/vm/runtime/vframe_hp.cpp
changeset 3600 27aa4477d039
parent 3171 aa289b22b577
child 3603 2d6d87c8705f
--- a/hotspot/src/share/vm/runtime/vframe_hp.cpp	Fri Jul 31 12:04:07 2009 -0700
+++ b/hotspot/src/share/vm/runtime/vframe_hp.cpp	Fri Jul 31 17:12:33 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();