diff options
| author | Liam Mitchell <[email protected]> | 2026-03-09 18:40:40 -0700 |
|---|---|---|
| committer | Liam Mitchell <[email protected]> | 2026-03-09 18:40:40 -0700 |
| commit | 97aa4e5c48305647a5d8f09da5f24bc1ce5540f3 (patch) | |
| tree | 11062e72f4342aeb2f16ac19d6af20ac0e4acd78 /src/zencore/memtrack/callstacktrace.cpp | |
| parent | Merge branch 'main' into lm/oidctoken-exe-path (diff) | |
| parent | updated chunk–block analyser (#818) (diff) | |
| download | zen-97aa4e5c48305647a5d8f09da5f24bc1ce5540f3.tar.xz zen-97aa4e5c48305647a5d8f09da5f24bc1ce5540f3.zip | |
Merge branch 'main' into lm/oidctoken-exe-path
Diffstat (limited to 'src/zencore/memtrack/callstacktrace.cpp')
| -rw-r--r-- | src/zencore/memtrack/callstacktrace.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/zencore/memtrack/callstacktrace.cpp b/src/zencore/memtrack/callstacktrace.cpp index a5b7fede6..4a7068568 100644 --- a/src/zencore/memtrack/callstacktrace.cpp +++ b/src/zencore/memtrack/callstacktrace.cpp @@ -169,13 +169,13 @@ private: std::atomic_uint64_t Key; std::atomic_uint32_t Value; - inline uint64 GetKey() const { return Key.load(std::memory_order_relaxed); } + inline uint64 GetKey() const { return Key.load(std::memory_order_acquire); } inline uint32_t GetValue() const { return Value.load(std::memory_order_relaxed); } - inline bool IsEmpty() const { return Key.load(std::memory_order_relaxed) == 0; } + inline bool IsEmpty() const { return Key.load(std::memory_order_acquire) == 0; } inline void SetKeyValue(uint64_t InKey, uint32_t InValue) { - Value.store(InValue, std::memory_order_release); - Key.store(InKey, std::memory_order_relaxed); + Value.store(InValue, std::memory_order_relaxed); + Key.store(InKey, std::memory_order_release); } static inline uint32_t KeyHash(uint64_t Key) { return static_cast<uint32_t>(Key); } static inline void ClearEntries(FEncounteredCallstackSetEntry* Entries, int32_t EntryCount) |