changeset 4754 | 8aef16f24e16 |
parent 3795 | 6227ff014cfe |
child 4892 | e977b527544a |
--- a/hotspot/src/share/vm/oops/methodDataOop.hpp Mon Feb 01 23:18:47 2010 +0100 +++ b/hotspot/src/share/vm/oops/methodDataOop.hpp Mon Feb 01 16:49:49 2010 -0800 @@ -1391,6 +1391,9 @@ } void inc_decompile_count() { _nof_decompiles += 1; + if (decompile_count() > (uint)PerMethodRecompilationCutoff) { + method()->set_not_compilable(); + } } // Support for code generation