changeset 54645:aed190ed8549

8217785: Padding ParallelTaskTerminator::_offered_termination variable Reviewed-by: shade, tschatzl
author zgu
date Tue, 29 Jan 2019 08:28:24 -0500
parents cd21b52e4055
children 2c38991dd9b0
files src/hotspot/share/gc/shared/taskqueue.hpp
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;