hotspot/src/share/vm/runtime/safepoint.cpp
changeset 24457 0e20b36df5c4
parent 24429 4efc66ee325c
child 25328 e76f3bfdbb5b
child 25351 7c198a690050
--- a/hotspot/src/share/vm/runtime/safepoint.cpp	Thu May 15 17:38:50 2014 -0400
+++ b/hotspot/src/share/vm/runtime/safepoint.cpp	Thu May 15 18:23:26 2014 -0400
@@ -541,6 +541,13 @@
     gclog_or_tty->rotate_log(false);
   }
 
+  {
+    // CMS delays purging the CLDG until the beginning of the next safepoint and to
+    // make sure concurrent sweep is done
+    TraceTime t7("purging class loader data graph", TraceSafepointCleanupTime);
+    ClassLoaderDataGraph::purge_if_needed();
+  }
+
   if (MemTracker::is_on()) {
     MemTracker::sync();
   }