summaryrefslogtreecommitdiffstats
path: root/include/shard
diff options
context:
space:
mode:
authorDouglas Rumbaugh <dbr4@psu.edu>2024-02-08 13:10:29 -0500
committerDouglas Rumbaugh <dbr4@psu.edu>2024-02-08 13:10:29 -0500
commit0f18dd8be6b20ebb8b6e5904032cc7ead305e88c (patch)
treef4922243bb1606d452cff700f279566d8b8449b5 /include/shard
parentded1f979d101a5df37a65370f6c18803212edb66 (diff)
downloaddynamic-extension-0f18dd8be6b20ebb8b6e5904032cc7ead305e88c.tar.gz
Added compiler fence to block reordering
I'm reasonably certain that this is a compiler bug...
Diffstat (limited to 'include/shard')
-rw-r--r--include/shard/ISAMTree.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/shard/ISAMTree.h b/include/shard/ISAMTree.h
index 33ba82f..b52887a 100644
--- a/include/shard/ISAMTree.h
+++ b/include/shard/ISAMTree.h
@@ -65,6 +65,8 @@ public:
sizeof(Wrapped<R>),
(byte**) &m_data);
+ asm volatile ("" ::: "memory");
+
auto res = sorted_array_from_bufferview(std::move(buffer), m_data, m_bf);
m_reccnt = res.record_count;
m_tombstone_cnt = res.tombstone_count;