comparison src/share/vm/gc_implementation/g1/g1MarkSweep.cpp @ 10179:a08c80e9e1e5

8012687: Remove unused is_root checks and closures Reviewed-by: tschatzl, jmasa
author stefank
date Mon, 22 Apr 2013 20:27:36 +0200
parents b735136e0d82
children b06ac540229e
comparison
equal deleted inserted replaced
10178:d391427ddc29 10179:a08c80e9e1e5
306 ClassLoaderDataGraph::clear_claimed_marks(); 306 ClassLoaderDataGraph::clear_claimed_marks();
307 307
308 sh->process_strong_roots(true, // activate StrongRootsScope 308 sh->process_strong_roots(true, // activate StrongRootsScope
309 false, // not scavenging. 309 false, // not scavenging.
310 SharedHeap::SO_AllClasses, 310 SharedHeap::SO_AllClasses,
311 &GenMarkSweep::adjust_root_pointer_closure, 311 &GenMarkSweep::adjust_pointer_closure,
312 NULL, // do not touch code cache here 312 NULL, // do not touch code cache here
313 &GenMarkSweep::adjust_klass_closure); 313 &GenMarkSweep::adjust_klass_closure);
314 314
315 assert(GenMarkSweep::ref_processor() == g1h->ref_processor_stw(), "Sanity"); 315 assert(GenMarkSweep::ref_processor() == g1h->ref_processor_stw(), "Sanity");
316 g1h->ref_processor_stw()->weak_oops_do(&GenMarkSweep::adjust_root_pointer_closure); 316 g1h->ref_processor_stw()->weak_oops_do(&GenMarkSweep::adjust_pointer_closure);
317 317
318 // Now adjust pointers in remaining weak roots. (All of which should 318 // Now adjust pointers in remaining weak roots. (All of which should
319 // have been cleared if they pointed to non-surviving objects.) 319 // have been cleared if they pointed to non-surviving objects.)
320 g1h->g1_process_weak_roots(&GenMarkSweep::adjust_root_pointer_closure, 320 g1h->g1_process_weak_roots(&GenMarkSweep::adjust_pointer_closure);
321 &GenMarkSweep::adjust_pointer_closure);
322 321
323 GenMarkSweep::adjust_marks(); 322 GenMarkSweep::adjust_marks();
324 323
325 G1AdjustPointersClosure blk; 324 G1AdjustPointersClosure blk;
326 g1h->heap_region_iterate(&blk); 325 g1h->heap_region_iterate(&blk);