1.1 --- a/src/share/vm/runtime/java.cpp Tue Sep 17 20:20:03 2013 +0200 1.2 +++ b/src/share/vm/runtime/java.cpp Wed Sep 18 07:02:10 2013 -0700 1.3 @@ -544,6 +544,19 @@ 1.4 // it will run into trouble when system destroys static variables. 1.5 MemTracker::shutdown(MemTracker::NMT_normal); 1.6 1.7 + if (VerifyStringTableAtExit) { 1.8 + int fail_cnt = 0; 1.9 + { 1.10 + MutexLocker ml(StringTable_lock); 1.11 + fail_cnt = StringTable::verify_and_compare_entries(); 1.12 + } 1.13 + 1.14 + if (fail_cnt != 0) { 1.15 + tty->print_cr("ERROR: fail_cnt=%d", fail_cnt); 1.16 + guarantee(fail_cnt == 0, "unexpected StringTable verification failures"); 1.17 + } 1.18 + } 1.19 + 1.20 #undef BEFORE_EXIT_NOT_RUN 1.21 #undef BEFORE_EXIT_RUNNING 1.22 #undef BEFORE_EXIT_DONE