changeset 48015:ae61a5eb9da4

8188877: Improper synchronization in offer_termination Reviewed-by: kbarrett, tschatzl, aph
author drwhite
date Tue, 28 Nov 2017 12:23:03 +0100
parents 111834dd10dd
children bafb0db43bfe
files src/hotspot/share/gc/shared/taskqueue.hpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/gc/shared/taskqueue.hpp	Tue Nov 28 14:16:24 2017 +0530
+++ b/src/hotspot/share/gc/shared/taskqueue.hpp	Tue Nov 28 12:23:03 2017 +0100
@@ -425,7 +425,7 @@
 private:
   uint _n_threads;
   TaskQueueSetSuper* _queue_set;
-  uint _offered_termination;
+  volatile uint _offered_termination;
 
 #ifdef TRACESPINNING
   static uint _total_yields;