hotspot/src/share/vm/opto/graphKit.hpp
changeset 3600 27aa4477d039
parent 3268 f034e0c86895
child 3904 007a45522a7f
--- 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();
+};