hotspot/src/share/vm/classfile/systemDictionary.cpp
changeset 26181 b8d61f186627
parent 26135 82b516c550f7
parent 26174 ca46a107cb78
child 26419 25abc4a3285c
child 26580 8cca7fbe77b8
--- a/hotspot/src/share/vm/classfile/systemDictionary.cpp	Tue Aug 19 10:04:29 2014 -0400
+++ b/hotspot/src/share/vm/classfile/systemDictionary.cpp	Thu Aug 21 20:24:41 2014 +0200
@@ -1693,10 +1693,9 @@
 // Note: anonymous classes are not in the SD.
 bool SystemDictionary::do_unloading(BoolObjectClosure* is_alive) {
   // First, mark for unload all ClassLoaderData referencing a dead class loader.
-  bool has_dead_loaders = ClassLoaderDataGraph::do_unloading(is_alive);
-  bool unloading_occurred = false;
-  if (has_dead_loaders) {
-    unloading_occurred = dictionary()->do_unloading();
+  bool unloading_occurred = ClassLoaderDataGraph::do_unloading(is_alive);
+  if (unloading_occurred) {
+    dictionary()->do_unloading();
     constraints()->purge_loader_constraints();
     resolution_errors()->purge_resolution_errors();
   }