mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 00:54:38 +02:00
8206424: Use locking for cleaning ProtectionDomainTable
ServiceThread is now in charge of cleaning ProtectionDomainTable entries Reviewed-by: coleenp, iklam
This commit is contained in:
parent
98242123a3
commit
16b92a561c
8 changed files with 141 additions and 5 deletions
|
@ -85,6 +85,9 @@ private:
|
|||
ProtectionDomainCacheEntry* add_entry(int index, unsigned int hash, Handle protection_domain);
|
||||
ProtectionDomainCacheEntry* find_entry(int index, Handle protection_domain);
|
||||
|
||||
bool _dead_entries;
|
||||
int _total_oops_removed;
|
||||
|
||||
public:
|
||||
ProtectionDomainCacheTable(int table_size);
|
||||
ProtectionDomainCacheEntry* get(Handle protection_domain);
|
||||
|
@ -93,6 +96,11 @@ public:
|
|||
|
||||
void print_on(outputStream* st) const;
|
||||
void verify();
|
||||
|
||||
bool has_work() { return _dead_entries; }
|
||||
void trigger_cleanup();
|
||||
|
||||
int removed_entries_count() { return _total_oops_removed; };
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue