comparison src/share/vm/compiler/compileBroker.cpp @ 16145:237508bd73b9

when Graal bootstrap is enabled (explicitly or implicitly), allocate same number of Graal compiler threads in -UseGraalCompilationQueue as in +UseGraalCompilationQueue
author Doug Simon <doug.simon@oracle.com>
date Thu, 19 Jun 2014 23:41:46 +0200
parents a87f6927d73e
children 404d2e86488a
comparison
equal deleted inserted replaced
16144:af9f3a5f091b 16145:237508bd73b9
803 } 803 }
804 #endif // COMPILER1 804 #endif // COMPILER1
805 805
806 #if defined(COMPILERGRAAL) 806 #if defined(COMPILERGRAAL)
807 _compilers[1] = graal; 807 _compilers[1] = graal;
808 c2_count = UseGraalCompilationQueue ? 0 : FLAG_IS_DEFAULT(GraalThreads) ? c2_count : GraalThreads; 808 if (UseGraalCompilationQueue) {
809 c2_count = 0;
810 } else {
811 if (FLAG_IS_DEFAULT(GraalThreads)) {
812 if (!TieredCompilation && FLAG_IS_DEFAULT(BootstrapGraal) || BootstrapGraal) {
813 // Graal will bootstrap so give it the same number of threads
814 // as we would give the Java based compilation queue.
815 c2_count = os::active_processor_count();
816 }
817 } else {
818 c2_count = GraalThreads;
819 }
820 }
809 #endif // COMPILERGRAAL 821 #endif // COMPILERGRAAL
810 822
811 #ifdef COMPILER2 823 #ifdef COMPILER2
812 if (c2_count > 0) { 824 if (c2_count > 0) {
813 _compilers[1] = new C2Compiler(); 825 _compilers[1] = new C2Compiler();