On Tuesday, 17 November 2015 at 19:27:15 UTC, tcak wrote:
As far as I know, GC has a separate thread that stops all other threads periodically to clear the unused memory fields.

That is a common misconception...

What disadvantages would we have if GC was to be freeing memory only when allocation is requested, and not checking periodically?

This is what it actually does now.

Reply via email to