Compare commits

...

2 Commits

Author SHA1 Message Date
lizzie dfccf1980d fsfsf 2026-07-21 23:39:53 +02:00
lizzie 66b9649fe2 [core/hle/service/nvdrv] force std::unordered_map<> to retain pointer stability
Signed-off-by: lizzie <lizzie@eden-emu.dev>
2026-07-21 23:39:53 +02:00
+2 -2
View File
@@ -12,6 +12,7 @@
#include <memory>
#include <mutex>
#include <optional>
#include <unordered_map>
#include <ankerl/unordered_dense.h>
#include <assert.h>
@@ -161,8 +162,7 @@ private:
std::list<std::shared_ptr<Handle>> unmap_queue{};
std::mutex unmap_queue_lock{}; //!< Protects access to `unmap_queue`
ankerl::unordered_dense::map<Handle::Id, std::shared_ptr<Handle>>
handles{}; //!< Main owning map of handles
std::unordered_map<Handle::Id, std::shared_ptr<Handle>> handles{}; //!< Main owning map of handles
std::mutex handles_lock; //!< Protects access to `handles`
static constexpr u32 HandleIdIncrement{