From 8b581a0a0fb6120799856a114b65af770cf13304 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Thu, 26 Feb 2026 11:48:37 -0800 Subject: [PATCH] ThreadManager: Name CallRet stacks So WTF can see their usage. Previously didn't add this due to some weird madvise bug that delete anon names, but that seems to be fixed in a newer kernel. --- Source/Tools/LinuxEmulation/LinuxSyscalls/ThreadManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/ThreadManager.cpp b/Source/Tools/LinuxEmulation/LinuxSyscalls/ThreadManager.cpp index 4ed079ba0..27f43debc 100644 --- a/Source/Tools/LinuxEmulation/LinuxSyscalls/ThreadManager.cpp +++ b/Source/Tools/LinuxEmulation/LinuxSyscalls/ThreadManager.cpp @@ -187,7 +187,7 @@ FEX::HLE::ThreadStateObject* ThreadManager::CreateThread(uint64_t InitialRIP, ui auto AllocBase = reinterpret_cast(FEXCore::Allocator::mmap(nullptr, CALLRET_STACK_ALLOC_SIZE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0)); - FEXCore::Allocator::VirtualName("FEXMem_Misc", reinterpret_cast(AllocBase), CALLRET_STACK_ALLOC_SIZE); + FEXCore::Allocator::VirtualName("FEXMem_CallRetStacks", reinterpret_cast(AllocBase), CALLRET_STACK_ALLOC_SIZE); // Set the base used for invalidation to the start past the guard pages ThreadStateObject->Thread->CallRetStackBase = reinterpret_cast(AllocBase + FEXCore::Utils::FEX_PAGE_SIZE);