8188877: Improper synchronization in offer_termination
authordrwhite
Tue, 28 Nov 2017 12:23:03 +0100
changeset 48140 ae61a5eb9da4
parent 48139 111834dd10dd
child 48141 bafb0db43bfe
8188877: Improper synchronization in offer_termination Reviewed-by: kbarrett, tschatzl, aph
src/hotspot/share/gc/shared/taskqueue.hpp
--- 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;