mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
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:
@ -72,5 +72,11 @@ public:
|
||||
{
|
||||
return region_size - (T::GetCodePtr() - region);
|
||||
}
|
||||
|
||||
bool IsAlmostFull() const
|
||||
{
|
||||
// This should be bigger than the biggest block ever.
|
||||
return GetSpaceLeft() < 0x10000;
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user