Memory usage is minimize()d only when a big allocation is done. This could
be problematic for applications that only perform small objects
allocation, as their memory usage could grow a lot, specially if the eager
allocation option is used.
Trigger memory minimization even for small objects allocation to avoid
that pathological case.
if (gc.mark_proc_pid != 0)
return;
+ if (gc.pools.length == 0)
+ return;
+
size_t n;
size_t pn;
Pool* pool;
{
//newPool(1);
}
+ minimize();
}
if (!gc.free_list[bin] && !allocPage(bin))
{