8078601: print_concurrent_locks should be guarded with INCLUDE_SERVICES
authorstefank
Mon, 27 Apr 2015 09:51:13 +0200
changeset 30567 497b3caa8243
parent 30566 18eb9aa972d0
child 30568 d0a24d56d8ea
8078601: print_concurrent_locks should be guarded with INCLUDE_SERVICES Reviewed-by: mgronlun, sla, dholmes
hotspot/src/share/vm/runtime/thread.cpp
--- a/hotspot/src/share/vm/runtime/thread.cpp	Mon Apr 27 09:51:06 2015 +0200
+++ b/hotspot/src/share/vm/runtime/thread.cpp	Mon Apr 27 09:51:13 2015 +0200
@@ -4210,13 +4210,13 @@
                Abstract_VM_Version::vm_info_string());
   st->cr();
 
-#if INCLUDE_ALL_GCS
+#if INCLUDE_SERVICES
   // Dump concurrent locks
   ConcurrentLocksDump concurrent_locks;
   if (print_concurrent_locks) {
     concurrent_locks.dump_at_safepoint();
   }
-#endif // INCLUDE_ALL_GCS
+#endif // INCLUDE_SERVICES
 
   ALL_JAVA_THREADS(p) {
     ResourceMark rm;
@@ -4229,11 +4229,11 @@
       }
     }
     st->cr();
-#if INCLUDE_ALL_GCS
+#if INCLUDE_SERVICES
     if (print_concurrent_locks) {
       concurrent_locks.print_locks_on(p, st);
     }
-#endif // INCLUDE_ALL_GCS
+#endif // INCLUDE_SERVICES
   }
 
   VMThread::vm_thread()->print_on(st);