Mercurial > hg > graal-jvmci-8
comparison src/share/vm/classfile/classLoader.cpp @ 20433:2e6106d44079
8057750: CTW should not make MH intrinsics not entrant
Summary: Do not make MH intrinsics not entrant in CTW
Reviewed-by: kvn, vlivanov
author | iveresov |
---|---|
date | Mon, 08 Sep 2014 11:45:48 -0700 |
parents | bb239308be67 |
children | f0bedf980c65 |
comparison
equal
deleted
inserted
replaced
20432:aff6ccb506cb | 20433:2e6106d44079 |
---|---|
1607 _compile_the_world_method_counter++; | 1607 _compile_the_world_method_counter++; |
1608 } | 1608 } |
1609 if (TieredCompilation && TieredStopAtLevel >= CompLevel_full_optimization) { | 1609 if (TieredCompilation && TieredStopAtLevel >= CompLevel_full_optimization) { |
1610 // Clobber the first compile and force second tier compilation | 1610 // Clobber the first compile and force second tier compilation |
1611 nmethod* nm = m->code(); | 1611 nmethod* nm = m->code(); |
1612 if (nm != NULL) { | 1612 if (nm != NULL && !m->is_method_handle_intrinsic()) { |
1613 // Throw out the code so that the code cache doesn't fill up | 1613 // Throw out the code so that the code cache doesn't fill up |
1614 nm->make_not_entrant(); | 1614 nm->make_not_entrant(); |
1615 m->clear_code(); | 1615 m->clear_code(); |
1616 } | 1616 } |
1617 CompileBroker::compile_method(m, InvocationEntryBci, CompLevel_full_optimization, | 1617 CompileBroker::compile_method(m, InvocationEntryBci, CompLevel_full_optimization, |
1626 } else { | 1626 } else { |
1627 tty->print_cr("CompileTheWorld (%d) : Skipping method: %s", _compile_the_world_class_counter, m->name_and_sig_as_C_string()); | 1627 tty->print_cr("CompileTheWorld (%d) : Skipping method: %s", _compile_the_world_class_counter, m->name_and_sig_as_C_string()); |
1628 } | 1628 } |
1629 | 1629 |
1630 nmethod* nm = m->code(); | 1630 nmethod* nm = m->code(); |
1631 if (nm != NULL) { | 1631 if (nm != NULL && !m->is_method_handle_intrinsic()) { |
1632 // Throw out the code so that the code cache doesn't fill up | 1632 // Throw out the code so that the code cache doesn't fill up |
1633 nm->make_not_entrant(); | 1633 nm->make_not_entrant(); |
1634 m->clear_code(); | 1634 m->clear_code(); |
1635 } | 1635 } |
1636 } | 1636 } |