changeset 16142:a87f6927d73e

added -XX:GraalThreads to mimic -G:Threads when using native compilation queue for Graal
author Doug Simon <doug.simon@oracle.com>
date Wed, 18 Jun 2014 21:58:45 +0200
parents da21746a64bf
children 4f185700f4b7
files src/share/vm/compiler/compileBroker.cpp src/share/vm/graal/graalGlobals.hpp
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/compiler/compileBroker.cpp	Wed Jun 18 11:26:04 2014 -0700
+++ b/src/share/vm/compiler/compileBroker.cpp	Wed Jun 18 21:58:45 2014 +0200
@@ -805,7 +805,7 @@
 
 #if defined(COMPILERGRAAL)
   _compilers[1] = graal;
-  c2_count = UseGraalCompilationQueue ? 0 : c2_count;
+  c2_count = UseGraalCompilationQueue ? 0 : FLAG_IS_DEFAULT(GraalThreads) ? c2_count : GraalThreads;
 #endif // COMPILERGRAAL
 
 #ifdef COMPILER2
--- a/src/share/vm/graal/graalGlobals.hpp	Wed Jun 18 11:26:04 2014 -0700
+++ b/src/share/vm/graal/graalGlobals.hpp	Wed Jun 18 21:58:45 2014 +0200
@@ -52,6 +52,9 @@
   COMPILERGRAAL_PRESENT(product(bool, BootstrapGraal, true,                 \
           "Bootstrap Graal before running Java main method"))               \
                                                                             \
+  COMPILERGRAAL_PRESENT(product(intx, GraalThreads, 1,                      \
+          "Force number of Graal compiler threads to use"))                 \
+                                                                            \
   COMPILERGRAAL_PRESENT(product(bool, UseGraalCompilationQueue, false,      \
           "Use non-native compilation queue for Graal"))                    \
                                                                             \