diff src/share/vm/compiler/compileBroker.cpp @ 17166:9df38e5fbed6

Limit the maximum Graal thread amount to 32 if nothing else is specified (On SPARC with 256 threads we exceed code cache size)
author Stefan Anzinger <stefan.anzinger@oracle.com>
date Fri, 19 Sep 2014 09:24:16 -0700
parents d2aa48d54db5
children 4a6e24a8fc2c
line wrap: on
line diff
--- a/src/share/vm/compiler/compileBroker.cpp	Fri Sep 19 09:18:47 2014 -0700
+++ b/src/share/vm/compiler/compileBroker.cpp	Fri Sep 19 09:24:16 2014 -0700
@@ -812,7 +812,7 @@
   if (FLAG_IS_DEFAULT(GraalThreads)) {
     if (!TieredCompilation && FLAG_IS_DEFAULT(BootstrapGraal) || BootstrapGraal) {
       // Graal will bootstrap so give it more threads
-      c2_count = os::active_processor_count();
+      c2_count = MIN2(32, os::active_processor_count());
     }
   } else {
     c2_count = GraalThreads;