8217785: Padding ParallelTaskTerminator::_offered_termination variable
authorzgu
Tue, 29 Jan 2019 08:28:24 -0500
changeset 53544 aed190ed8549
parent 53543 cd21b52e4055
child 53545 2c38991dd9b0
8217785: Padding ParallelTaskTerminator::_offered_termination variable Reviewed-by: shade, tschatzl
src/hotspot/share/gc/shared/taskqueue.hpp
--- a/src/hotspot/share/gc/shared/taskqueue.hpp	Tue Jan 29 12:16:52 2019 +0100
+++ b/src/hotspot/share/gc/shared/taskqueue.hpp	Tue Jan 29 08:28:24 2019 -0500
@@ -451,7 +451,10 @@
 protected:
   uint _n_threads;
   TaskQueueSetSuper* _queue_set;
+
+  DEFINE_PAD_MINUS_SIZE(0, DEFAULT_CACHE_LINE_SIZE, 0);
   volatile uint _offered_termination;
+  DEFINE_PAD_MINUS_SIZE(1, DEFAULT_CACHE_LINE_SIZE, sizeof(volatile uint));
 
 #ifdef TRACESPINNING
   static uint _total_yields;