Mercurial > hg > truffle
comparison src/share/vm/opto/graphKit.hpp @ 900:9987d9d5eb0e
6833129: specjvm98 fails with NullPointerException in the compiler with -XX:DeoptimizeALot
Summary: developed a reexecute logic for the interpreter to reexecute the bytecode when deopt happens
Reviewed-by: kvn, never, jrose, twisti
author | cfang |
---|---|
date | Fri, 31 Jul 2009 17:12:33 -0700 |
parents | fc4be448891f |
children | 685e959d09ea |
comparison
equal
deleted
inserted
replaced
899:55cb84cd1247 | 900:9987d9d5eb0e |
---|---|
761 class BuildCutout: public PreserveJVMState { | 761 class BuildCutout: public PreserveJVMState { |
762 public: | 762 public: |
763 BuildCutout(GraphKit* kit, Node* p, float prob, float cnt = COUNT_UNKNOWN); | 763 BuildCutout(GraphKit* kit, Node* p, float prob, float cnt = COUNT_UNKNOWN); |
764 ~BuildCutout(); | 764 ~BuildCutout(); |
765 }; | 765 }; |
766 | |
767 // Helper class to preserve the original _reexecute bit and _sp and restore | |
768 // them back | |
769 class PreserveReexecuteState: public StackObj { | |
770 protected: | |
771 GraphKit* _kit; | |
772 uint _sp; | |
773 JVMState::ReexecuteState _reexecute; | |
774 | |
775 public: | |
776 PreserveReexecuteState(GraphKit* kit); | |
777 ~PreserveReexecuteState(); | |
778 }; |