From 568bcbc29d099f030f7022838cd788dfe2feba45 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 21 Nov 2018 18:28:01 -0500 Subject: kernel/handle_table: Restrict handle table size to 1024 entries The previous handle table size is a holdover from Citra. The actual handle table construct on Horizon only allows for a maximum of 1024 entries. --- src/core/hle/kernel/handle_table.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/core') diff --git a/src/core/hle/kernel/handle_table.h b/src/core/hle/kernel/handle_table.h index b5e5f6545..ae3116afc 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; -- cgit v1.2.3