mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8205583: Crash in ConcurrentHashTable do_bulk_delete_locked_for
Reviewed-by: coleenp, gziemski
This commit is contained in:
parent
bcdf345cc2
commit
1e4a26ceda
3 changed files with 26 additions and 62 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue