comparison src/share/vm/memory/genMarkSweep.cpp @ 20254:9fec19bb0659

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 0982ec23da03
children 7426d8d76305
comparison
equal deleted inserted replaced
20253:731e8175d53f 20254:9fec19bb0659
208 ClassLoaderDataGraph::clear_claimed_marks(); 208 ClassLoaderDataGraph::clear_claimed_marks();
209 209
210 gch->gen_process_strong_roots(level, 210 gch->gen_process_strong_roots(level,
211 false, // Younger gens are not roots. 211 false, // Younger gens are not roots.
212 true, // activate StrongRootsScope 212 true, // activate StrongRootsScope
213 false, // not scavenging
214 SharedHeap::SO_SystemClasses, 213 SharedHeap::SO_SystemClasses,
215 &follow_root_closure, 214 &follow_root_closure,
216 true, // walk code active on stacks 215 true, // walk code active on stacks
217 &follow_root_closure, 216 &follow_root_closure,
218 &follow_klass_closure); 217 &follow_klass_closure);
294 adjust_pointer_closure.set_orig_generation(gch->get_gen(level)); 293 adjust_pointer_closure.set_orig_generation(gch->get_gen(level));
295 294
296 gch->gen_process_strong_roots(level, 295 gch->gen_process_strong_roots(level,
297 false, // Younger gens are not roots. 296 false, // Younger gens are not roots.
298 true, // activate StrongRootsScope 297 true, // activate StrongRootsScope
299 false, // not scavenging
300 SharedHeap::SO_AllClasses, 298 SharedHeap::SO_AllClasses,
301 &adjust_pointer_closure, 299 &adjust_pointer_closure,
302 false, // do not walk code 300 false, // do not walk code
303 &adjust_pointer_closure, 301 &adjust_pointer_closure,
304 &adjust_klass_closure); 302 &adjust_klass_closure);