changeset 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 5247c895a6ab
children b8f54c5ec73a
files src/share/vm/compiler/compileBroker.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;