8078601: print_concurrent_locks should be guarded with INCLUDE_SERVICES

Reviewed-by: mgronlun, sla, dholmes
This commit is contained in:
Stefan Karlsson 2015-04-27 09:51:13 +02:00
parent f7ea0b72eb
commit f171cd3a86

View file

@ -4210,13 +4210,13 @@ void Threads::print_on(outputStream* st, bool print_stacks,
Abstract_VM_Version::vm_info_string()); Abstract_VM_Version::vm_info_string());
st->cr(); st->cr();
#if INCLUDE_ALL_GCS #if INCLUDE_SERVICES
// Dump concurrent locks // Dump concurrent locks
ConcurrentLocksDump concurrent_locks; ConcurrentLocksDump concurrent_locks;
if (print_concurrent_locks) { if (print_concurrent_locks) {
concurrent_locks.dump_at_safepoint(); concurrent_locks.dump_at_safepoint();
} }
#endif // INCLUDE_ALL_GCS #endif // INCLUDE_SERVICES
ALL_JAVA_THREADS(p) { ALL_JAVA_THREADS(p) {
ResourceMark rm; ResourceMark rm;
@ -4229,11 +4229,11 @@ void Threads::print_on(outputStream* st, bool print_stacks,
} }
} }
st->cr(); st->cr();
#if INCLUDE_ALL_GCS #if INCLUDE_SERVICES
if (print_concurrent_locks) { if (print_concurrent_locks) {
concurrent_locks.print_locks_on(p, st); concurrent_locks.print_locks_on(p, st);
} }
#endif // INCLUDE_ALL_GCS #endif // INCLUDE_SERVICES
} }
VMThread::vm_thread()->print_on(st); VMThread::vm_thread()->print_on(st);