8205583: Crash in ConcurrentHashTable do_bulk_delete_locked_for

Reviewed-by: coleenp, gziemski
This commit is contained in:
Robbin Ehn 2018-06-27 12:46:15 +02:00
parent bcdf345cc2
commit 1e4a26ceda
3 changed files with 26 additions and 62 deletions

View file

@ -499,7 +499,6 @@ void StringTable::clean_dead_entries(JavaThread* jt) {
StringTableDeleteCheck stdc;
StringTableDoDelete stdd;
bool interrupted = false;
{
TraceTime timer("Clean", TRACETIME_LOG(Debug, stringtable, perf));
while(bdt.do_task(jt, stdc, stdd)) {
@ -507,15 +506,8 @@ void StringTable::clean_dead_entries(JavaThread* jt) {
{
ThreadBlockInVM tbivm(jt);
}
if (!bdt.cont(jt)) {
interrupted = true;
break;
}
bdt.cont(jt);
}
}
if (interrupted) {
_has_work = true;
} else {
bdt.done(jt);
}
log_debug(stringtable)("Cleaned %ld of %ld", stdc._count, stdc._item);