2122 }
2123
2124 // This is the point where the entire marking should have completed.
2125 assert(cm->marking_stacks_empty(), "Marking should have completed");
2126
2127 {
2128 GCTraceTime(Debug, gc, phases) tm("Weak Processing", &_gc_timer);
2129 WeakProcessor::weak_oops_do(is_alive_closure(), &do_nothing_cl);
2130 }
2131
2132 {
2133 GCTraceTime(Debug, gc, phases) tm_m("Class Unloading", &_gc_timer);
2134
2135 // Follow system dictionary roots and unload classes.
2136 bool purged_class = SystemDictionary::do_unloading(is_alive_closure(), &_gc_timer);
2137
2138 // Unload nmethods.
2139 CodeCache::do_unloading(is_alive_closure(), purged_class);
2140
2141 // Prune dead klasses from subklass/sibling/implementor lists.
2142 Klass::clean_weak_klass_links();
2143 }
2144
2145 {
2146 GCTraceTime(Debug, gc, phases) t("Scrub String Table", &_gc_timer);
2147 // Delete entries for dead interned strings.
2148 StringTable::unlink(is_alive_closure());
2149 }
2150
2151 {
2152 GCTraceTime(Debug, gc, phases) t("Scrub Symbol Table", &_gc_timer);
2153 // Clean up unreferenced symbols in symbol table.
2154 SymbolTable::unlink();
2155 }
2156
2157 _gc_tracer.report_object_count_after_gc(is_alive_closure());
2158 }
2159
2160 void PSParallelCompact::adjust_roots(ParCompactionManager* cm) {
2161 // Adjust the pointers to reflect the new locations
2162 GCTraceTime(Info, gc, phases) tm("Adjust Roots", &_gc_timer);
|
2122 }
2123
2124 // This is the point where the entire marking should have completed.
2125 assert(cm->marking_stacks_empty(), "Marking should have completed");
2126
2127 {
2128 GCTraceTime(Debug, gc, phases) tm("Weak Processing", &_gc_timer);
2129 WeakProcessor::weak_oops_do(is_alive_closure(), &do_nothing_cl);
2130 }
2131
2132 {
2133 GCTraceTime(Debug, gc, phases) tm_m("Class Unloading", &_gc_timer);
2134
2135 // Follow system dictionary roots and unload classes.
2136 bool purged_class = SystemDictionary::do_unloading(is_alive_closure(), &_gc_timer);
2137
2138 // Unload nmethods.
2139 CodeCache::do_unloading(is_alive_closure(), purged_class);
2140
2141 // Prune dead klasses from subklass/sibling/implementor lists.
2142 Klass::clean_weak_klass_links(purged_class);
2143 }
2144
2145 {
2146 GCTraceTime(Debug, gc, phases) t("Scrub String Table", &_gc_timer);
2147 // Delete entries for dead interned strings.
2148 StringTable::unlink(is_alive_closure());
2149 }
2150
2151 {
2152 GCTraceTime(Debug, gc, phases) t("Scrub Symbol Table", &_gc_timer);
2153 // Clean up unreferenced symbols in symbol table.
2154 SymbolTable::unlink();
2155 }
2156
2157 _gc_tracer.report_object_count_after_gc(is_alive_closure());
2158 }
2159
2160 void PSParallelCompact::adjust_roots(ParCompactionManager* cm) {
2161 // Adjust the pointers to reflect the new locations
2162 GCTraceTime(Info, gc, phases) tm("Adjust Roots", &_gc_timer);
|