diff -r 619700f41f8e -r 77d9c9da7188 src/share/vm/classfile/classLoader.cpp --- a/src/share/vm/classfile/classLoader.cpp Thu Feb 02 00:29:28 2017 +0000 +++ b/src/share/vm/classfile/classLoader.cpp Mon Feb 06 23:36:58 2017 +0300 @@ -1627,7 +1627,6 @@ 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(); } CompileBroker::compile_method(m, InvocationEntryBci, CompLevel_full_optimization, methodHandle(), 0, "CTW", THREAD); @@ -1646,7 +1645,6 @@ 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(); } } }