mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
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:
parent
945623c998
commit
2e5653c166
3 changed files with 47 additions and 7 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue