From ded2479840ae63512c557fecda8b9008a0cd4241 Mon Sep 17 00:00:00 2001 From: Derek White Date: Tue, 28 Nov 2017 12:23:03 +0100 Subject: [PATCH] 8188877: Improper synchronization in offer_termination Reviewed-by: kbarrett, tschatzl, aph --- src/hotspot/share/gc/shared/taskqueue.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotspot/share/gc/shared/taskqueue.hpp b/src/hotspot/share/gc/shared/taskqueue.hpp index ef1e9688bd4..439d81e6e23 100644 --- a/src/hotspot/share/gc/shared/taskqueue.hpp +++ b/src/hotspot/share/gc/shared/taskqueue.hpp @@ -425,7 +425,7 @@ class ParallelTaskTerminator: public StackObj { private: uint _n_threads; TaskQueueSetSuper* _queue_set; - uint _offered_termination; + volatile uint _offered_termination; #ifdef TRACESPINNING static uint _total_yields;