Real-time GC does not work, period.
Posted Jun 17, 2010 10:57 UTC (Thu) by
khim (subscriber, #9252)
In reply to:
Pauses by flewellyn
Parent article:
The Managed Runtime Initiative
Problems with real-time GC is not the GC itself. Rather it's general problem: you can't manage memory efficiently unless the program does it. If you program keeps links to gigabyte of long-dead objects and then suddenly drop links to all these objects to create another gygabyte of objects you'll see UI freezes no matter what you do. And if your program is accurate enough and careful enough with allocation of objects then it's usually easy to add manual allocation or trivial refcounting GC.
Good memory management is hard, good memory management with GC is harder. Not only you must think about references to objects - you must keep the capabilities of GC in mind too!
GC is great for batch-processing, but real-time? It does not work in practice beyong toy samples.
(
Log in to post comments)