8057750: CTW should not make MH intrinsics not entrant

Do not make MH intrinsics not entrant in CTW

Reviewed-by: kvn, vlivanov
This commit is contained in:
Igor Veresov 2014-09-08 11:45:48 -07:00
parent e285f3eadc
commit b91254ea6a

View File

@ -1521,7 +1521,7 @@ void ClassLoader::compile_the_world_in(char* name, Handle loader, TRAPS) {
if (TieredCompilation && TieredStopAtLevel >= CompLevel_full_optimization) {
// Clobber the first compile and force second tier compilation
nmethod* nm = m->code();
if (nm != NULL) {
if (nm != NULL && !m->is_method_handle_intrinsic()) {
// Throw out the code so that the code cache doesn't fill up
nm->make_not_entrant();
m->clear_code();
@ -1540,7 +1540,7 @@ void ClassLoader::compile_the_world_in(char* name, Handle loader, TRAPS) {
}
nmethod* nm = m->code();
if (nm != NULL) {
if (nm != NULL && !m->is_method_handle_intrinsic()) {
// Throw out the code so that the code cache doesn't fill up
nm->make_not_entrant();
m->clear_code();