VERY experimental Nintendo Switch 2 emulator
C++
kernel/handle_table: Restrict handle table size to 1024 entries
Lioncash6fac9e5b3125
diff --git a/src/core/hle/kernel/handle_table.h b/src/core/hle/kernel/handle_table.hindex b5e5f65458..ae3116afc4 100644--- a/src/core/hle/kernel/handle_table.h+++ b/src/core/hle/kernel/handle_table.h@@ -90,11 +90,8 @@ public:void Clear();private:- /**- * This is the maximum limit of handles allowed per process in CTR-OS. It can be further- * reduced by ExHeader values, but this is not emulated here.- */- static const std::size_t MAX_COUNT = 4096;+ /// This is the maximum limit of handles allowed per process in Horizon+ static constexpr std::size_t MAX_COUNT = 1024;static u16 GetSlot(Handle handle) {return handle >> 15;