mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8222893: markOopDesc::print_on() is a bit confused
Add print_on for ObjectMonitor and make markOop printing sensible and add test. Reviewed-by: dcubed, pchilanomate
This commit is contained in:
parent
69647ce061
commit
26255c10cb
5 changed files with 168 additions and 21 deletions
|
@ -1926,3 +1926,11 @@ void ObjectMonitor::Initialize() {
|
|||
|
||||
DEBUG_ONLY(InitDone = true;)
|
||||
}
|
||||
|
||||
void ObjectMonitor::print_on(outputStream* st) const {
|
||||
// The minimal things to print for markOop printing, more can be added for debugging and logging.
|
||||
st->print("{contentions=0x%08x,waiters=0x%08x"
|
||||
",recursions=" INTPTR_FORMAT ",owner=" INTPTR_FORMAT "}",
|
||||
contentions(), waiters(), recursions(),
|
||||
p2i(owner()));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue