diff --git a/src/hotspot/share/code/nmethod.cpp b/src/hotspot/share/code/nmethod.cpp index 5959790..e4f3db3 100644 --- a/src/hotspot/share/code/nmethod.cpp +++ b/src/hotspot/share/code/nmethod.cpp @@ -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); +} + //-----------------------------------------------------------------------------