hotspot/src/share/vm/classfile/classLoader.cpp
changeset 41715 296ff044b943
parent 41667 4a349512fde1
child 41741 2f5b8bbcb18c
--- a/hotspot/src/share/vm/classfile/classLoader.cpp	Mon Oct 17 16:40:49 2016 -0700
+++ b/hotspot/src/share/vm/classfile/classLoader.cpp	Tue Oct 18 09:43:12 2016 +0200
@@ -2041,7 +2041,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, CompileTask::Reason_CTW, THREAD);
@@ -2060,7 +2059,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();
             }
           }
         }