src/hotspot/share/gc/shared/taskqueue.hpp
changeset 48140 ae61a5eb9da4
parent 47885 5caa1d5f74c1
child 48157 7c4d43c26352
--- 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;