--- a/hotspot/src/share/vm/opto/graphKit.hpp Fri Jul 31 12:04:07 2009 -0700
+++ b/hotspot/src/share/vm/opto/graphKit.hpp Fri Jul 31 17:12:33 2009 -0700
@@ -763,3 +763,16 @@
BuildCutout(GraphKit* kit, Node* p, float prob, float cnt = COUNT_UNKNOWN);
~BuildCutout();
};
+
+// Helper class to preserve the original _reexecute bit and _sp and restore
+// them back
+class PreserveReexecuteState: public StackObj {
+ protected:
+ GraphKit* _kit;
+ uint _sp;
+ JVMState::ReexecuteState _reexecute;
+
+ public:
+ PreserveReexecuteState(GraphKit* kit);
+ ~PreserveReexecuteState();
+};