< prev index next >

src/hotspot/share/gc/z/zUnload.cpp

Print this page
rev 57601 : [mq]: metaspace-improvement


 160   if (!ClassUnloading) {
 161     return;
 162   }
 163 
 164   ZStatTimer timer(ZSubPhaseConcurrentClassesUnload);
 165 
 166   // Unlink stale metadata and nmethods
 167   unlink();
 168 
 169   // Make sure stale metadata and nmethods are no longer observable
 170   ZUnloadRendezvousClosure cl;
 171   Handshake::execute(&cl);
 172 
 173   // Purge stale metadata and nmethods that were unlinked
 174   purge();
 175 }
 176 
 177 void ZUnload::finish() {
 178   // Resize and verify metaspace
 179   MetaspaceGC::compute_new_size();
 180   MetaspaceUtils::verify_metrics();
 181 }


 160   if (!ClassUnloading) {
 161     return;
 162   }
 163 
 164   ZStatTimer timer(ZSubPhaseConcurrentClassesUnload);
 165 
 166   // Unlink stale metadata and nmethods
 167   unlink();
 168 
 169   // Make sure stale metadata and nmethods are no longer observable
 170   ZUnloadRendezvousClosure cl;
 171   Handshake::execute(&cl);
 172 
 173   // Purge stale metadata and nmethods that were unlinked
 174   purge();
 175 }
 176 
 177 void ZUnload::finish() {
 178   // Resize and verify metaspace
 179   MetaspaceGC::compute_new_size();
 180   DEBUG_ONLY(MetaspaceUtils::verify(false);)
 181 }
< prev index next >