--- old/src/share/vm/opto/graphKit.hpp Tue Jul 21 15:54:28 2009 +++ new/src/share/vm/opto/graphKit.hpp Tue Jul 21 15:54:28 2009 @@ -751,3 +751,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::REBit _reexecute; + + public: + PreserveReexecuteState(GraphKit* kit); + ~PreserveReexecuteState(); +};