From bfc51e577fa6778f1368f413253c43d218544c09 Mon Sep 17 00:00:00 2001 From: Pepper Gray Date: Sun, 3 May 2026 15:09:49 +0200 Subject: [PATCH] remove dead code (ObjectCacheRefCounter) building using libc++ failes due to shared_mutex ObjectCacheRefCounter inflating InternalThreadState beyond FEX_PAGE_SIZE, thus triggering the static assert: ``` FEXCore/Debug/InternalThreadState.h:133:15: error: static assertion failed FEX/FEXCore/include/FEXCore/Debug/InternalThreadState.h:133:145: note: expression evaluates to '7680 < 4096' FEX/FEXCore/include/FEXCore/Debug/InternalThreadState.h:136:58: note: expression evaluates to '12288 == 8192' ``` remove `ObjectCacheRefCounter` as it is not used anywhere. fix: #5456 Signed-off-by: Pepper Gray --- FEXCore/include/FEXCore/Debug/InternalThreadState.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/FEXCore/include/FEXCore/Debug/InternalThreadState.h b/FEXCore/include/FEXCore/Debug/InternalThreadState.h index 93829dd0b..aa35bba25 100644 --- a/FEXCore/include/FEXCore/Debug/InternalThreadState.h +++ b/FEXCore/include/FEXCore/Debug/InternalThreadState.h @@ -104,8 +104,6 @@ struct alignas(FEXCore::Utils::FEX_PAGE_SIZE) InternalThreadState : public FEXCo std::shared_ptr CompileService; - std::shared_mutex ObjectCacheRefCounter {}; - // This pointer is owned by the frontend. FEXCore::SHMStats::ThreadStats* ThreadStats {};