mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8149383: Convert TraceBiasedLocking to Unified Logging
The former -XX:+TraceBiasedLocking flag has been converted to the UL option -Xlog:biasedlocking=info and =trace, with the old option being aliased. Reviewed-by: dholmes, dcubed
This commit is contained in:
parent
af854404be
commit
3cf4e3909c
6 changed files with 153 additions and 60 deletions
|
@ -170,11 +170,10 @@ void* Thread::allocate(size_t size, bool throw_excpt, MEMFLAGS flags) {
|
|||
assert(((uintptr_t) aligned_addr + (uintptr_t) size) <=
|
||||
((uintptr_t) real_malloc_addr + (uintptr_t) aligned_size),
|
||||
"JavaThread alignment code overflowed allocated storage");
|
||||
if (TraceBiasedLocking) {
|
||||
if (aligned_addr != real_malloc_addr) {
|
||||
tty->print_cr("Aligned thread " INTPTR_FORMAT " to " INTPTR_FORMAT,
|
||||
p2i(real_malloc_addr), p2i(aligned_addr));
|
||||
}
|
||||
if (aligned_addr != real_malloc_addr) {
|
||||
log_info(biasedlocking)("Aligned thread " INTPTR_FORMAT " to " INTPTR_FORMAT,
|
||||
p2i(real_malloc_addr),
|
||||
p2i(aligned_addr));
|
||||
}
|
||||
((Thread*) aligned_addr)->_real_malloc_address = real_malloc_addr;
|
||||
return aligned_addr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue