From 4d91127c8aff3cf1752ea545098e785689ecf0f2 Mon Sep 17 00:00:00 2001 From: andrew Date: Wed, 4 Sep 2019 17:48:48 +0100 Subject: [PATCH] 8147611: G1 - Missing memory barrier in start_cset_region_for_worker Reviewed-by: mgerdin, tschatzl --- src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp b/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp index e69839c4d..aa6bbc81a 100644 --- a/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp +++ b/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp @@ -2790,6 +2790,7 @@ HeapRegion* G1CollectedHeap::start_cset_region_for_worker(uint worker_i) { // Previous workers starting region is valid // so let's iterate from there start_ind = (cs_size * (worker_i - 1)) / active_workers; + OrderAccess::loadload(); result = _worker_cset_start_region[worker_i - 1]; } -- GitLab