Fix JitCache.Unmap called with the same address freeing memory in use (#5937)

This commit is contained in:
gdkchan
2023-11-16 17:52:21 -03:00
committed by GitHub
parent d11fe26aa3
commit 82a638230e
2 changed files with 9 additions and 23 deletions

View File

@ -95,7 +95,7 @@ namespace ARMeilleure.Translation.Cache
{
int offset = (int)((long)controlPc - context.ToInt64());
if (!JitCache.TryFind(offset, out CacheEntry funcEntry))
if (!JitCache.TryFind(offset, out CacheEntry funcEntry, out _))
{
return null; // Not found.
}