mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 10:04:42 +02:00
8078601: print_concurrent_locks should be guarded with INCLUDE_SERVICES
Reviewed-by: mgronlun, sla, dholmes
This commit is contained in:
parent
f7ea0b72eb
commit
f171cd3a86
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue