# HG changeset patch # User stefank # Date 1430121073 -7200 # Node ID 497b3caa82431a2a2da716cfea028e3dd3495f96 # Parent 18eb9aa972d034b63d9bc1c8c6609fc346d715e9 8078601: print_concurrent_locks should be guarded with INCLUDE_SERVICES Reviewed-by: mgronlun, sla, dholmes diff -r 18eb9aa972d0 -r 497b3caa8243 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);