Fix TSAN violation in HandleAllocator (#8438)

This commit is contained in:
Ben Doherty
2025-02-13 15:31:00 -08:00
committed by GitHub
parent 95e2c44c85
commit 18529facef
@@ -29,6 +29,7 @@
#include <tsl/robin_map.h>
#include <atomic>
#include <cstddef>
#include <exception>
#include <mutex>
@@ -426,7 +427,7 @@ private:
// Below is only used when running out of space in the HandleArena
mutable utils::Mutex mLock;
tsl::robin_map<HandleBase::HandleId, void*> mOverflowMap;
HandleBase::HandleId mId = 0;
std::atomic<HandleBase::HandleId> mId = 0;
bool mUseAfterFreeCheckDisabled = false;
};