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) {