From 8e4d52396b798ec46caf73f0828a1afd8bd5e056 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Thu, 4 May 2023 14:45:19 -0700 Subject: [PATCH] LookupCache: Removes unnecessary recursive lock_guard All code paths to this are already guaranteed to own the lock. The rest of the codepaths haven't been vetted to actually need recursive_mutex yet, but seems likely that it will be able to get converted to a regular mutex with some more work. --- External/FEXCore/Source/Interface/Core/LookupCache.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/External/FEXCore/Source/Interface/Core/LookupCache.h b/External/FEXCore/Source/Interface/Core/LookupCache.h index 819409e7f..8bbe99141 100644 --- a/External/FEXCore/Source/Interface/Core/LookupCache.h +++ b/External/FEXCore/Source/Interface/Core/LookupCache.h @@ -168,8 +168,6 @@ public: private: void CacheBlockMapping(uint64_t Address, uintptr_t HostCode) { - std::lock_guard lk(WriteLock); - // Do L1 auto &L1Entry = reinterpret_cast(L1Pointer)[Address & L1_ENTRIES_MASK]; L1Entry.GuestCode = Address;