I am writing a statically compiled language and i would like to support garbage collection. before designing it i would like to know how i should i deduce when the GC should run?
Should it be after every 16mb allocate interval? (checking after enough rises or just before it allocates 16+mb). Is there a case to check ealier so loops can reuse the same memory to be efficient? etc