diff src/share/vm/opto/bytecodeInfo.cpp @ 675:f6da6f0174ac

6821700: tune VM flags for peak performance Summary: Tune C2 flags default values for performance. Reviewed-by: never, phh, iveresov, jmasa, ysr
author kvn
date Mon, 30 Mar 2009 18:19:31 -0700
parents 194b8e3a2fc4
children be93aad57795
line wrap: on
line diff
--- a/src/share/vm/opto/bytecodeInfo.cpp	Fri Mar 27 14:37:42 2009 -0700
+++ b/src/share/vm/opto/bytecodeInfo.cpp	Mon Mar 30 18:19:31 2009 -0700
@@ -232,6 +232,14 @@
     return "disallowed by CompilerOracle";
   }
 
+  if (UseStringCache) {
+    // Do not inline StringCache::profile() method used only at the beginning.
+    if (callee_method->name() == ciSymbol::profile_name() &&
+        callee_method->holder()->name() == ciSymbol::java_lang_StringCache()) {
+      return "profiling method";
+    }
+  }
+
   return NULL;
 }