Reset recompiler code when buffer gets to full

This commit is contained in:
zilmar 2012-09-26 20:32:39 +10:00
parent f391e1db6c
commit e12e24f572
1 changed files with 1 additions and 0 deletions

View File

@ -50,6 +50,7 @@ void CRecompMemory::CheckRecompMem ( void )
}
if (m_RecompSize == MaxCompileBufferSize)
{
_Recompiler->ResetRecompCode();
return;
}
LPVOID MemAddr = VirtualAlloc( m_RecompCode + m_RecompSize , IncreaseCompileBufferSize, MEM_COMMIT, PAGE_EXECUTE_READWRITE);