8295838: Document why we do not print Code Cache Roots phase in G1 logging

Reviewed-by: ayang, iwalulya
This commit is contained in:
Thomas Schatzl 2022-10-25 18:51:43 +00:00
parent ef606086a9
commit ee0dec8bf5

@ -205,6 +205,9 @@ void G1RootProcessor::process_vm_roots(G1RootClosures* closures,
void G1RootProcessor::process_code_cache_roots(CodeBlobClosure* code_closure,
G1GCPhaseTimes* phase_times,
uint worker_id) {
// We do not track timing of this phase. It is only required with class unloading
// disabled, which is an extremely uncommon use case and would otherwise only ever
// show up as "skipped" in the logs.
if (_process_strong_tasks.try_claim_task(G1RP_PS_CodeCache_oops_do)) {
CodeCache::blobs_do(code_closure);
}