8211821: PrintStringTableStatistics crashes JVM

During JVM exit, print the Symbol and String tables before current thread gets deleted.

Reviewed-by: iklam, dholmes
This commit is contained in:
Harold Seigel 2018-10-11 11:31:37 -04:00
parent 945623c998
commit 2e5653c166
3 changed files with 47 additions and 7 deletions

View file

@ -575,9 +575,6 @@ void vm_direct_exit(int code) {
}
void vm_perform_shutdown_actions() {
// Warning: do not call 'exit_globals()' here. All threads are still running.
// Calling 'exit_globals()' will disable thread-local-storage and cause all
// kinds of assertions to trigger in debug mode.
if (is_init_completed()) {
Thread* thread = Thread::current_or_null();
if (thread != NULL && thread->is_Java_thread()) {