src/hotspot/share/classfile/classLoaderDataGraph.cpp
changeset 52587 6cd56deebb0d
parent 52586 74109912c738
child 52781 436097b038a1
equal deleted inserted replaced
52586:74109912c738 52587:6cd56deebb0d
   580     data = data->next();
   580     data = data->next();
   581   }
   581   }
   582 }
   582 }
   583 
   583 
   584 void ClassLoaderDataGraph::purge() {
   584 void ClassLoaderDataGraph::purge() {
   585   assert(SafepointSynchronize::is_at_safepoint(), "must be at safepoint!");
   585   assert_locked_or_safepoint(ClassLoaderDataGraph_lock);
   586   ClassLoaderData* list = _unloading;
   586   ClassLoaderData* list = _unloading;
   587   _unloading = NULL;
   587   _unloading = NULL;
   588   ClassLoaderData* next = list;
   588   ClassLoaderData* next = list;
   589   bool classes_unloaded = false;
   589   bool classes_unloaded = false;
   590   while (next != NULL) {
   590   while (next != NULL) {