Mercurial > hg > graal-jvmci-8
comparison src/share/vm/gc_implementation/parallelScavenge/psMarkSweep.cpp @ 374:a4b729f5b611
6716466: par compact - remove VerifyParallelOldWithMarkSweep code
Reviewed-by: jmasa
author | jcoomes |
---|---|
date | Tue, 30 Sep 2008 11:49:31 -0700 |
parents | 12eea04c8b06 |
children | eb28cf662f56 |
comparison
equal
deleted
inserted
replaced
373:06df86c2ec37 | 374:a4b729f5b611 |
---|---|
33 void PSMarkSweep::initialize() { | 33 void PSMarkSweep::initialize() { |
34 MemRegion mr = Universe::heap()->reserved_region(); | 34 MemRegion mr = Universe::heap()->reserved_region(); |
35 _ref_processor = new ReferenceProcessor(mr, | 35 _ref_processor = new ReferenceProcessor(mr, |
36 true, // atomic_discovery | 36 true, // atomic_discovery |
37 false); // mt_discovery | 37 false); // mt_discovery |
38 if (!UseParallelOldGC || !VerifyParallelOldWithMarkSweep) { | 38 _counters = new CollectorCounters("PSMarkSweep", 1); |
39 _counters = new CollectorCounters("PSMarkSweep", 1); | |
40 } | |
41 } | 39 } |
42 | 40 |
43 // This method contains all heap specific policy for invoking mark sweep. | 41 // This method contains all heap specific policy for invoking mark sweep. |
44 // PSMarkSweep::invoke_no_policy() will only attempt to mark-sweep-compact | 42 // PSMarkSweep::invoke_no_policy() will only attempt to mark-sweep-compact |
45 // the heap. It will do nothing further. If we need to bail out for policy | 43 // the heap. It will do nothing further. If we need to bail out for policy |
516 | 514 |
517 // Flush marking stack. | 515 // Flush marking stack. |
518 follow_stack(); | 516 follow_stack(); |
519 | 517 |
520 // Process reference objects found during marking | 518 // Process reference objects found during marking |
521 | |
522 // Skipping the reference processing for VerifyParallelOldWithMarkSweep | |
523 // affects the marking (makes it different). | |
524 { | 519 { |
525 ReferencePolicy *soft_ref_policy; | 520 ReferencePolicy *soft_ref_policy; |
526 if (clear_all_softrefs) { | 521 if (clear_all_softrefs) { |
527 soft_ref_policy = new AlwaysClearPolicy(); | 522 soft_ref_policy = new AlwaysClearPolicy(); |
528 } else { | 523 } else { |