changeset 15202 | 9304f658b07e |
parent 15201 | f3d755b11424 |
parent 15191 | d5f9601f72af |
child 15482 | 470d0b0c09f1 |
--- a/hotspot/src/share/vm/runtime/java.cpp Mon Jan 14 13:52:08 2013 -0500 +++ b/hotspot/src/share/vm/runtime/java.cpp Thu Jan 17 01:27:02 2013 -0500 @@ -548,6 +548,10 @@ BeforeExit_lock->notify_all(); } + // Shutdown NMT before exit. Otherwise, + // it will run into trouble when system destroys static variables. + MemTracker::shutdown(MemTracker::NMT_normal); + #undef BEFORE_EXIT_NOT_RUN #undef BEFORE_EXIT_RUNNING #undef BEFORE_EXIT_DONE