This commit is contained in:
Dean Long 2013-01-17 01:27:02 -05:00
commit 6e8916cdbb
34 changed files with 1085 additions and 590 deletions

View file

@ -548,6 +548,10 @@ void before_exit(JavaThread * thread) {
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