From c3ac72a01ec697cbf249d04f1054663c01cfde8d Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Mon, 9 May 2022 00:44:11 -0700 Subject: [PATCH] Core: Do named region async code object cache usage --- External/FEXCore/Source/Interface/Core/Core.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/External/FEXCore/Source/Interface/Core/Core.cpp b/External/FEXCore/Source/Interface/Core/Core.cpp index 607876753..f6a7a8837 100644 --- a/External/FEXCore/Source/Interface/Core/Core.cpp +++ b/External/FEXCore/Source/Interface/Core/Core.cpp @@ -1180,6 +1180,10 @@ namespace FEXCore::Context { if (DebugServer) { DebugServer->AlertLibrariesChanged(); } + + if (CodeObjectCacheService) { + CodeObjectCacheService->AsyncAddNamedRegionJob(Base, Size, Offset, filename); + } } void Context::RemoveNamedRegion(uintptr_t Base, uintptr_t Size) { @@ -1187,6 +1191,10 @@ namespace FEXCore::Context { if (DebugServer) { DebugServer->AlertLibrariesChanged(); } + + if (CodeObjectCacheService) { + CodeObjectCacheService->AsyncRemoveNamedRegionJob(Base, Size); + } } void ConfigureAOTGen(FEXCore::Core::InternalThreadState *Thread, std::set *ExternalBranches, uint64_t SectionMaxAddress) {