# HG changeset patch # User Thomas Wuerthinger # Date 1426539015 -3600 # Node ID 6dcbb4e05ce9067a555da8ea482494e0eef6c5d7 # Parent c3d9637c98ed87324b383eacfa6a3068bcf40c3b# Parent f803f49c9ec423cb1c87a510c29fd61afd6a8c57 Merge. diff -r f803f49c9ec4 -r 6dcbb4e05ce9 src/share/vm/compiler/compileBroker.cpp --- a/src/share/vm/compiler/compileBroker.cpp Mon Mar 16 13:47:45 2015 +0100 +++ b/src/share/vm/compiler/compileBroker.cpp Mon Mar 16 21:50:15 2015 +0100 @@ -801,12 +801,6 @@ GraalCompiler* graal = new GraalCompiler(); #endif -#ifdef COMPILER1 - if (c1_count > 0) { - _compilers[0] = new Compiler(); - } -#endif // COMPILER1 - #if defined(COMPILERGRAAL) _compilers[1] = graal; if (FLAG_IS_DEFAULT(GraalThreads)) { @@ -817,8 +811,18 @@ } else { c2_count = GraalThreads; } + if (FLAG_IS_DEFAULT(GraalHostThreads)) { + } else { + c1_count = GraalHostThreads; + } #endif // COMPILERGRAAL +#ifdef COMPILER1 + if (c1_count > 0) { + _compilers[0] = new Compiler(); + } +#endif // COMPILER1 + #ifdef COMPILER2 if (c2_count > 0) { _compilers[1] = new C2Compiler(); diff -r f803f49c9ec4 -r 6dcbb4e05ce9 src/share/vm/graal/graalGlobals.hpp --- a/src/share/vm/graal/graalGlobals.hpp Mon Mar 16 13:47:45 2015 +0100 +++ b/src/share/vm/graal/graalGlobals.hpp Mon Mar 16 21:50:15 2015 +0100 @@ -61,6 +61,9 @@ COMPILERGRAAL_PRESENT(product(intx, GraalThreads, 1, \ "Force number of Graal compiler threads to use")) \ \ + COMPILERGRAAL_PRESENT(product(intx, GraalHostThreads, 1, \ + "Force number of compiler threads for Graal host compiler")) \ + \ GRAAL_ONLY(product(bool, CodeInstallSafepointChecks, true, \ "Perform explicit safepoint checks while installing code")) \ \