diff 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
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp	Tue Mar 24 10:04:10 2015 +0000
+++ b/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp	Wed Mar 25 11:03:16 2015 +0100
@@ -6808,7 +6808,7 @@
       // We really only need to do this for old regions given that we
       // should never scan survivors. But it doesn't hurt to do it
       // for survivors too.
-      new_alloc_region->record_top_and_timestamp();
+      new_alloc_region->record_timestamp();
       if (survivor) {
         new_alloc_region->set_survivor();
         _hr_printer.alloc(new_alloc_region, G1HRPrinter::Survivor);