mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8212989: Allow CompiledMethod ExceptionCache have unloaded klasses
Reviewed-by: kvn, pliden
This commit is contained in:
parent
fdb010502b
commit
f2fe71b186
6 changed files with 118 additions and 23 deletions
|
@ -244,6 +244,7 @@ ExceptionCache::ExceptionCache(Handle exception, address pc, address handler) {
|
|||
_count = 0;
|
||||
_exception_type = exception->klass();
|
||||
_next = NULL;
|
||||
_purge_list_next = NULL;
|
||||
|
||||
add_address_and_handler(pc,handler);
|
||||
}
|
||||
|
@ -293,6 +294,14 @@ bool ExceptionCache::add_address_and_handler(address addr, address handler) {
|
|||
return false;
|
||||
}
|
||||
|
||||
ExceptionCache* ExceptionCache::next() {
|
||||
return Atomic::load(&_next);
|
||||
}
|
||||
|
||||
void ExceptionCache::set_next(ExceptionCache *ec) {
|
||||
Atomic::store(ec, &_next);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue