Mercurial > hg > truffle
comparison src/share/vm/oops/methodDataOop.cpp @ 5039:f3d2447db2d9
added detection for endless recompilation
separated C1 and Graal specific globals
fixed jump branch probability
author | Christian Haeubl <christian.haeubl@oracle.com> |
---|---|
date | Tue, 06 Mar 2012 11:11:27 -0800 |
parents | 8e6db1a5c537 |
children | e5d42eccfb29 |
comparison
equal
deleted
inserted
replaced
5038:1b907994bf2d | 5039:f3d2447db2d9 |
---|---|
866 if (decompile_count() > (uint)PerMethodRecompilationCutoff) { | 866 if (decompile_count() > (uint)PerMethodRecompilationCutoff) { |
867 #ifdef GRAAL | 867 #ifdef GRAAL |
868 // TODO (ch) enable this in the fastdebug build only once we are more stable | 868 // TODO (ch) enable this in the fastdebug build only once we are more stable |
869 ResourceMark m; | 869 ResourceMark m; |
870 tty->print_cr("WARN: endless recompilation of %s. Method was set to not compilable.", method()->name_and_sig_as_C_string()); | 870 tty->print_cr("WARN: endless recompilation of %s. Method was set to not compilable.", method()->name_and_sig_as_C_string()); |
871 vm_exit(1); | 871 ShouldNotReachHere(); |
872 #endif | 872 #endif |
873 method()->set_not_compilable(CompLevel_full_optimization); | 873 method()->set_not_compilable(CompLevel_full_optimization); |
874 } | 874 } |
875 } | 875 } |
876 | 876 |