comparison 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
comparison
equal deleted inserted replaced
17165:5247c895a6ab 17166:9df38e5fbed6
810 #if defined(COMPILERGRAAL) 810 #if defined(COMPILERGRAAL)
811 _compilers[1] = graal; 811 _compilers[1] = graal;
812 if (FLAG_IS_DEFAULT(GraalThreads)) { 812 if (FLAG_IS_DEFAULT(GraalThreads)) {
813 if (!TieredCompilation && FLAG_IS_DEFAULT(BootstrapGraal) || BootstrapGraal) { 813 if (!TieredCompilation && FLAG_IS_DEFAULT(BootstrapGraal) || BootstrapGraal) {
814 // Graal will bootstrap so give it more threads 814 // Graal will bootstrap so give it more threads
815 c2_count = os::active_processor_count(); 815 c2_count = MIN2(32, os::active_processor_count());
816 } 816 }
817 } else { 817 } else {
818 c2_count = GraalThreads; 818 c2_count = GraalThreads;
819 } 819 }
820 #endif // COMPILERGRAAL 820 #endif // COMPILERGRAAL