@@ -2104,11 +2104,11 @@ } // This is the point where the entire marking should have completed. assert(cm->marking_stacks_empty(), "Marking should have completed"); - { + if (ClassUnloading) { GCTraceTime(Debug, gc, phases) tm_m("Class Unloading", &_gc_timer); // Follow system dictionary roots and unload classes. bool purged_class = SystemDictionary::do_unloading(is_alive_closure());