comparison src/share/vm/gc_implementation/g1/g1MarkSweep.cpp @ 14308:870aedf4ba4f

8032379: Remove the is_scavenging flag to process_strong_roots Summary: Refactor the strong root processing to avoid using a boolean in addition to the ScanOption enum. Reviewed-by: stefank, tschatzl, ehelin, jmasa
author mgerdin
date Tue, 14 Jan 2014 16:40:33 +0100
parents 893ce66f7473
children 63a4eb8bcd23
comparison
equal deleted inserted replaced
14307:7ab52431bc9f 14308:870aedf4ba4f
129 129
130 // Need cleared claim bits for the strong roots processing 130 // Need cleared claim bits for the strong roots processing
131 ClassLoaderDataGraph::clear_claimed_marks(); 131 ClassLoaderDataGraph::clear_claimed_marks();
132 132
133 sh->process_strong_roots(true, // activate StrongRootsScope 133 sh->process_strong_roots(true, // activate StrongRootsScope
134 false, // not scavenging.
135 SharedHeap::SO_SystemClasses, 134 SharedHeap::SO_SystemClasses,
136 &GenMarkSweep::follow_root_closure, 135 &GenMarkSweep::follow_root_closure,
137 &GenMarkSweep::follow_code_root_closure, 136 &GenMarkSweep::follow_code_root_closure,
138 &GenMarkSweep::follow_klass_closure); 137 &GenMarkSweep::follow_klass_closure);
139 138
306 305
307 // Need cleared claim bits for the strong roots processing 306 // Need cleared claim bits for the strong roots processing
308 ClassLoaderDataGraph::clear_claimed_marks(); 307 ClassLoaderDataGraph::clear_claimed_marks();
309 308
310 sh->process_strong_roots(true, // activate StrongRootsScope 309 sh->process_strong_roots(true, // activate StrongRootsScope
311 false, // not scavenging.
312 SharedHeap::SO_AllClasses, 310 SharedHeap::SO_AllClasses,
313 &GenMarkSweep::adjust_pointer_closure, 311 &GenMarkSweep::adjust_pointer_closure,
314 NULL, // do not touch code cache here 312 NULL, // do not touch code cache here
315 &GenMarkSweep::adjust_klass_closure); 313 &GenMarkSweep::adjust_klass_closure);
316 314