8217785: Padding ParallelTaskTerminator::_offered_termination variable
Reviewed-by: shade, tschatzl
--- 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;