changeset 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 aff6ccb506cb
children 2d9cef76b5a6
files src/share/vm/classfile/classLoader.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/classfile/classLoader.cpp	Fri Sep 05 14:39:45 2014 -0700
+++ b/src/share/vm/classfile/classLoader.cpp	Mon Sep 08 11:45:48 2014 -0700
@@ -1609,7 +1609,7 @@
               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();
@@ -1628,7 +1628,7 @@
             }
 
             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();