changeset 10506:ebbd1e270795

8152134: [JVMCI] printing compile queues always prints C2 regardless of UseJVMCICompiler Reviewed-by: dnsimon
author twisti
date Thu, 17 Mar 2016 16:10:58 -1000
parents 59db3de117b0
children 81a1829d48eb
files src/share/vm/compiler/compileBroker.cpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/compiler/compileBroker.cpp	Thu Mar 17 16:10:09 2016 -1000
+++ b/src/share/vm/compiler/compileBroker.cpp	Thu Mar 17 16:10:58 2016 -1000
@@ -773,7 +773,8 @@
 #endif // !ZERO && !SHARK
   // Initialize the compilation queue
   if (c2_compiler_count > 0) {
-    _c2_compile_queue  = new CompileQueue("C2 compile queue");
+    const char* name = JVMCI_ONLY(UseJVMCICompiler ? "JVMCI compile queue" :) "C2 compile queue";
+    _c2_compile_queue  = new CompileQueue(name);
     _compilers[1]->set_num_compiler_threads(c2_compiler_count);
   }
   if (c1_compiler_count > 0) {