8212989: Allow CompiledMethod ExceptionCache have unloaded klasses

Reviewed-by: kvn, pliden
This commit is contained in:
Erik Österlund 2018-11-05 08:01:39 +01:00
parent fdb010502b
commit f2fe71b186
6 changed files with 118 additions and 23 deletions

View file

@ -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);
}
//-----------------------------------------------------------------------------