8206424: Use locking for cleaning ProtectionDomainTable

ServiceThread is now in charge of cleaning ProtectionDomainTable entries

Reviewed-by: coleenp, iklam
This commit is contained in:
Patricio Chilano Mateo 2018-08-31 10:22:04 -04:00
parent 98242123a3
commit 16b92a561c
8 changed files with 141 additions and 5 deletions

View file

@ -1884,7 +1884,7 @@ bool SystemDictionary::do_unloading(GCTimer* gc_timer,
// Oops referenced by the protection domain cache table may get unreachable independently
// of the class loader (eg. cached protection domain oops). So we need to
// explicitly unlink them here.
_pd_cache_table->unlink();
_pd_cache_table->trigger_cleanup();
}
if (do_cleaning) {