CodeBlock: Add a shared IsAlmostFull function

This function shall keep care about the low watermark of code space.
If we ran out of space, the JITs shall clear their block cache.
This commit is contained in:
degasus committed 2015-07-15 08:53:05 +02:00
1 parent a5c10ded55
commit 6f38d1baa1
4 files changed
+9 -6

No files matched your search

+1 -1
View File
@@ -473,7 +473,7 @@ void JitIL::Trace()
void JitIL::Jit(u32 em_address)
{
if (GetSpaceLeft() < 0x10000 || farcode.GetSpaceLeft() < 0x10000 || blocks.IsFull() ||
if (IsAlmostFull() || farcode.IsAlmostFull() || blocks.IsFull() ||
SConfig::GetInstance().bJITNoBlockCache)
{
ClearCache();