mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 09:34:38 +02:00
8184994: Add Dictionary size logging and jcmd
Added dcmd for printing system dictionary like the stringtable and symboltable and making print functions go to outputstream rather than tty Reviewed-by: shade, hseigel
This commit is contained in:
parent
366e6ac796
commit
17f23d1881
30 changed files with 349 additions and 254 deletions
|
@ -848,6 +848,13 @@ void Thread::print_on_error(outputStream* st, char* buf, int buflen) const {
|
|||
}
|
||||
}
|
||||
|
||||
void Thread::print_value_on(outputStream* st) const {
|
||||
if (is_Named_thread()) {
|
||||
st->print(" \"%s\" ", name());
|
||||
}
|
||||
st->print(INTPTR_FORMAT, p2i(this)); // print address
|
||||
}
|
||||
|
||||
#ifdef ASSERT
|
||||
void Thread::print_owned_locks_on(outputStream* st) const {
|
||||
Monitor *cur = _owned_locks;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue