# HG changeset patch # User Stefan Anzinger # Date 1411143856 25200 # Node ID 9df38e5fbed68987f8ec72d52f60bc7887fcee85 # Parent 5247c895a6ab021809ef8217a0ca8907c90bc1f8 Limit the maximum Graal thread amount to 32 if nothing else is specified (On SPARC with 256 threads we exceed code cache size) diff -r 5247c895a6ab -r 9df38e5fbed6 src/share/vm/compiler/compileBroker.cpp --- 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;