mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8195097: Make it possible to process StringTable outside safepoint
Reviewed-by: coleenp, gziemski, iklam, jiangli
This commit is contained in:
parent
91f473f2ae
commit
66f8951e15
31 changed files with 917 additions and 848 deletions
|
@ -524,14 +524,9 @@ void before_exit(JavaThread* thread) {
|
|||
}
|
||||
|
||||
if (VerifyStringTableAtExit) {
|
||||
int fail_cnt = 0;
|
||||
{
|
||||
MutexLocker ml(StringTable_lock);
|
||||
fail_cnt = StringTable::verify_and_compare_entries();
|
||||
}
|
||||
|
||||
size_t fail_cnt = StringTable::verify_and_compare_entries();
|
||||
if (fail_cnt != 0) {
|
||||
tty->print_cr("ERROR: fail_cnt=%d", fail_cnt);
|
||||
tty->print_cr("ERROR: fail_cnt=" SIZE_FORMAT, fail_cnt);
|
||||
guarantee(fail_cnt == 0, "unexpected StringTable verification failures");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue