From 56c474c1d4f71db0f5ad1f318c116a98c3f75672 Mon Sep 17 00:00:00 2001 From: lizzie Date: Mon, 9 Mar 2026 06:28:14 +0000 Subject: [PATCH 1/2] [core/hle/service/nvdrv] force std::unordered_map<> to retain pointer stability Signed-off-by: lizzie --- src/core/hle/service/nvdrv/core/nvmap.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/hle/service/nvdrv/core/nvmap.h b/src/core/hle/service/nvdrv/core/nvmap.h index 17b9ccd1c7..c4cf323b78 100644 --- a/src/core/hle/service/nvdrv/core/nvmap.h +++ b/src/core/hle/service/nvdrv/core/nvmap.h @@ -161,8 +161,7 @@ private: std::list> unmap_queue{}; std::mutex unmap_queue_lock{}; //!< Protects access to `unmap_queue` - ankerl::unordered_dense::map> - handles{}; //!< Main owning map of handles + std::unordered_map> handles{}; //!< Main owning map of handles std::mutex handles_lock; //!< Protects access to `handles` static constexpr u32 HandleIdIncrement{ From 06f9a56465bb52291f85c0becf736c1c72211705 Mon Sep 17 00:00:00 2001 From: lizzie Date: Mon, 9 Mar 2026 06:29:28 +0000 Subject: [PATCH 2/2] fsfsf --- src/core/hle/service/nvdrv/core/nvmap.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/hle/service/nvdrv/core/nvmap.h b/src/core/hle/service/nvdrv/core/nvmap.h index c4cf323b78..695138807f 100644 --- a/src/core/hle/service/nvdrv/core/nvmap.h +++ b/src/core/hle/service/nvdrv/core/nvmap.h @@ -12,6 +12,7 @@ #include #include #include +#include #include #include