Am 16.12.2011 21:06, schrieb Jon Harrop: > At regular intervals, check if the heap size has exceeded its quota > and, if so, run a GC cycle. I have seen people recommend doing this kind of check whenever hitting a malloc call. I think it nicely scales with the level of heap activity for most programs.