< prev index next >

src/hotspot/share/code/nmethod.cpp

ZGC: 8212989: Allow CompiledMethod ExceptionCache have unloaded klasses
   assert(handler != NULL, "Must be non null");
 
   _count = 0;
   _exception_type = exception->klass();
   _next = NULL;
+  _purge_list_next = NULL;
 
   add_address_and_handler(pc,handler);
 }
 
 

@@ -291,10 +292,18 return true; } return false; } +ExceptionCache* ExceptionCache::next() { + return Atomic::load(&_next); +} + +void ExceptionCache::set_next(ExceptionCache *ec) { + Atomic::store(ec, &_next); +} + //----------------------------------------------------------------------------- // Helper used by both find_pc_desc methods. static inline bool match_desc(PcDesc* pc, int pc_offset, bool approximate) {
< prev index next >