changeset 9028:fa7fe6dae563 jdk8u232-b03

8217785: Padding ParallelTaskTerminator::_offered_termination variable Reviewed-by: shade, tschatzl
author zgu
date Tue, 29 Jan 2019 08:28:24 -0500
parents c7a3e57fdf4a
children 42118db355f5 7576bbd5a03c
files src/share/vm/utilities/taskqueue.hpp
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/utilities/taskqueue.hpp	Thu Aug 01 03:44:03 2019 +0100
+++ b/src/share/vm/utilities/taskqueue.hpp	Tue Jan 29 08:28:24 2019 -0500
@@ -29,6 +29,7 @@
 #include "memory/allocation.inline.hpp"
 #include "runtime/mutex.hpp"
 #include "runtime/orderAccess.inline.hpp"
+#include "utilities/globalDefinitions.hpp"
 #include "utilities/stack.hpp"
 
 // Simple TaskQueue stats that are collected by default in debug builds.
@@ -607,7 +608,9 @@
 private:
   int _n_threads;
   TaskQueueSetSuper* _queue_set;
+  char _pad_before[DEFAULT_CACHE_LINE_SIZE];
   int _offered_termination;
+  char _pad_after[DEFAULT_CACHE_LINE_SIZE];
 
 #ifdef TRACESPINNING
   static uint _total_yields;