summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2021-02-22 15:44:52 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-02-26 17:42:26 +0000
commita64233e90499f6e3d94c21fbe58c91e7bd744ba1 (patch)
tree2bb62c2e49f69159e57bd7f1602efeb23af3e4bc
parent778369e499633860cca4a224d919858805d2695a (diff)
downloadmongo-a64233e90499f6e3d94c21fbe58c91e7bd744ba1.tar.gz
SERVER-54685 Replace the ARM yield instruction with isb
(cherry picked from commit 6979525674af67405984c58585766dd4d0c3f2a8) (cherry picked from commit 82a03739b80bf1873ec620165a1d8cfea2edd46f)
-rw-r--r--src/mongo/platform/pause.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/platform/pause.h b/src/mongo/platform/pause.h
index 6547658346e..0b0a6fa2240 100644
--- a/src/mongo/platform/pause.h
+++ b/src/mongo/platform/pause.h
@@ -58,7 +58,8 @@
#elif defined(__aarch64__) || defined(__arm__)
-#define MONGO_YIELD_CORE_FOR_SMT() __asm__ volatile("yield" ::: "memory")
+/* See https://jira.mongodb.org/browse/WT-6872 for details on using `isb` instead of `yield`. */
+#define MONGO_YIELD_CORE_FOR_SMT() __asm__ volatile("isb" ::: "memory")
#elif defined(__s390x__)