equal
deleted
inserted
replaced
1302 SvcGCMarker sgcm(SvcGCMarker::FULL); |
1302 SvcGCMarker sgcm(SvcGCMarker::FULL); |
1303 ResourceMark rm; |
1303 ResourceMark rm; |
1304 |
1304 |
1305 print_heap_before_gc(); |
1305 print_heap_before_gc(); |
1306 |
1306 |
1307 size_t metadata_prev_used = MetaspaceAux::used_in_bytes(); |
1307 size_t metadata_prev_used = MetaspaceAux::allocated_used_bytes(); |
1308 |
1308 |
1309 HRSPhaseSetter x(HRSPhaseFullGC); |
1309 HRSPhaseSetter x(HRSPhaseFullGC); |
1310 verify_region_sets_optional(); |
1310 verify_region_sets_optional(); |
1311 |
1311 |
1312 const bool do_clear_all_soft_refs = clear_all_soft_refs || |
1312 const bool do_clear_all_soft_refs = clear_all_soft_refs || |
1423 assert(!ref_processor_stw()->discovery_enabled(), "Postcondition"); |
1423 assert(!ref_processor_stw()->discovery_enabled(), "Postcondition"); |
1424 ref_processor_stw()->verify_no_references_recorded(); |
1424 ref_processor_stw()->verify_no_references_recorded(); |
1425 |
1425 |
1426 // Delete metaspaces for unloaded class loaders and clean up loader_data graph |
1426 // Delete metaspaces for unloaded class loaders and clean up loader_data graph |
1427 ClassLoaderDataGraph::purge(); |
1427 ClassLoaderDataGraph::purge(); |
|
1428 MetaspaceAux::verify_metrics(); |
1428 |
1429 |
1429 // Note: since we've just done a full GC, concurrent |
1430 // Note: since we've just done a full GC, concurrent |
1430 // marking is no longer active. Therefore we need not |
1431 // marking is no longer active. Therefore we need not |
1431 // re-enable reference discovery for the CM ref processor. |
1432 // re-enable reference discovery for the CM ref processor. |
1432 // That will be done at the start of the next marking cycle. |
1433 // That will be done at the start of the next marking cycle. |