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:
Coleen Phillimore 2019-05-06 15:25:57 -04:00
parent 69647ce061
commit 26255c10cb
5 changed files with 168 additions and 21 deletions

View file

@ -291,6 +291,9 @@ class ObjectMonitor {
void notify(TRAPS);
void notifyAll(TRAPS);
void print() const { print_on(tty); }
void print_on(outputStream* st) const;
// Use the following at your own risk
intptr_t complete_exit(TRAPS);
void reenter(intptr_t recursions, TRAPS);