1
0
Fork 0
mirror of https://github.com/VSadov/Satori.git synced 2025-06-08 03:27:04 +09:00
This commit is contained in:
vsadov 2024-10-20 08:42:55 -07:00
parent ae26e0ff3a
commit 63240286c5

View file

@ -963,6 +963,12 @@ void SatoriRecycler::AdjustHeuristics()
// if the heap size will definitely be over the limit at next GC, make the next GC a full GC
m_nextGcIsFullGc = occupancy + m_gen1Budget > m_totalLimit;
// TODO: VS do we really want this?
//if ((int)m_gcCount[1] - m_gen1CountAtLastGen2 > 64)
//{
// m_nextGcIsFullGc = true;
//}
size_t available = GetAvailableMemory();
if (available < m_gen1Budget)
{