summaryrefslogtreecommitdiff
path: root/src/mongo/db/concurrency
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2017-06-19 12:30:31 -0400
committerAndrew Morrow <acm@mongodb.com>2017-06-28 22:26:53 -0400
commit943ede3296b190c97fe6ae53f7b718de22cd074d (patch)
tree627fade772412392ae978f76f31aff30b2ac41ab /src/mongo/db/concurrency
parent690302a49b61d5be3f4dcc285921eb362648055c (diff)
downloadmongo-943ede3296b190c97fe6ae53f7b718de22cd074d.tar.gz
SERVER-24219 Make AlignedLockStats respect cache line size
Diffstat (limited to 'src/mongo/db/concurrency')
-rw-r--r--src/mongo/db/concurrency/lock_state.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/concurrency/lock_state.cpp b/src/mongo/db/concurrency/lock_state.cpp
index 0f8f6d79a3b..710de4ac234 100644
--- a/src/mongo/db/concurrency/lock_state.cpp
+++ b/src/mongo/db/concurrency/lock_state.cpp
@@ -37,6 +37,7 @@
#include "mongo/db/namespace_string.h"
#include "mongo/db/service_context.h"
#include "mongo/platform/compiler.h"
+#include "mongo/stdx/new.h"
#include "mongo/util/background.h"
#include "mongo/util/concurrency/ticketholder.h"
#include "mongo/util/debug_util.h"
@@ -86,7 +87,7 @@ public:
private:
// This alignment is a best effort approach to ensure that each partition falls on a
// separate page/cache line in order to avoid false sharing.
- struct MONGO_COMPILER_ALIGN_TYPE(128) AlignedLockStats {
+ struct alignas(stdx::hardware_destructive_interference_size) AlignedLockStats {
AtomicLockStats stats;
};