Merge
authorneliasso
Fri, 19 Sep 2014 10:24:10 +0000
changeset 26808 b2a4db3243d6
parent 26806 4e6fbf9f59f4 (current diff)
parent 26807 843ea33eb963 (diff)
child 26809 8d3de4de954d
Merge
--- a/hotspot/src/share/vm/compiler/compileBroker.cpp	Fri Sep 19 10:31:03 2014 +0200
+++ b/hotspot/src/share/vm/compiler/compileBroker.cpp	Fri Sep 19 10:24:10 2014 +0000
@@ -783,18 +783,22 @@
 
 
 void CompileBroker::print_compile_queues(outputStream* st) {
-  _c1_compile_queue->print(st);
-  _c2_compile_queue->print(st);
+  MutexLocker locker(MethodCompileQueue_lock);
+  if (_c1_compile_queue != NULL) {
+    _c1_compile_queue->print(st);
+  }
+  if (_c2_compile_queue != NULL) {
+    _c2_compile_queue->print(st);
+  }
 }
 
-
 void CompileQueue::print(outputStream* st) {
-  assert_locked_or_safepoint(lock());
+  assert(lock()->owned_by_self(), "must own lock");
   st->print_cr("Contents of %s", name());
   st->print_cr("----------------------------");
   CompileTask* task = _first;
   if (task == NULL) {
-    st->print_cr("Empty");;
+    st->print_cr("Empty");
   } else {
     while (task != NULL) {
       task->print_compilation(st, NULL, true, true);
--- a/hotspot/src/share/vm/services/diagnosticCommand.hpp	Fri Sep 19 10:31:03 2014 +0200
+++ b/hotspot/src/share/vm/services/diagnosticCommand.hpp	Fri Sep 19 10:24:10 2014 +0000
@@ -427,7 +427,7 @@
     return "Compiler.codelist";
   }
   static const char* description() {
-    return "Print all compiled methods in code cache.";
+    return "Print all compiled methods in code cache that are alive";
   }
   static const char* impact() {
     return "Medium";