mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00: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:
parent
a5c10ded55
commit
6f38d1baa1
4 changed files with 9 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue