Mercurial > hg > graal-jvmci-8
comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp @ 22897:80ac3ee51955
8065358: Refactor G1s usage of save_marks and reduce related races
Summary: Stop using save_marks in G1 related code and make setting the replacement field less racy.
Reviewed-by: brutisso, tschatzl
author | mgerdin |
---|---|
date | Wed, 25 Mar 2015 11:03:16 +0100 |
parents | f2e3f0e1f97d |
children | f97f21d8d58c |
comparison
equal
deleted
inserted
replaced
22896:5743a702da65 | 22897:80ac3ee51955 |
---|---|
6806 true /* do_expand */); | 6806 true /* do_expand */); |
6807 if (new_alloc_region != NULL) { | 6807 if (new_alloc_region != NULL) { |
6808 // We really only need to do this for old regions given that we | 6808 // We really only need to do this for old regions given that we |
6809 // should never scan survivors. But it doesn't hurt to do it | 6809 // should never scan survivors. But it doesn't hurt to do it |
6810 // for survivors too. | 6810 // for survivors too. |
6811 new_alloc_region->record_top_and_timestamp(); | 6811 new_alloc_region->record_timestamp(); |
6812 if (survivor) { | 6812 if (survivor) { |
6813 new_alloc_region->set_survivor(); | 6813 new_alloc_region->set_survivor(); |
6814 _hr_printer.alloc(new_alloc_region, G1HRPrinter::Survivor); | 6814 _hr_printer.alloc(new_alloc_region, G1HRPrinter::Survivor); |
6815 check_bitmaps("Survivor Region Allocation", new_alloc_region); | 6815 check_bitmaps("Survivor Region Allocation", new_alloc_region); |
6816 } else { | 6816 } else { |