[D-runtime] Precise garbage collection

Leandro Lucarella leandro.lucarella at sociomantic.com
Mon Jun 24 02:37:03 PDT 2013


On Fri, Jun 21, 2013 at 08:36:23PM +0200, Rainer Schuetze wrote:
> f. Currently, the precise GC can be versioned in/out, but I think
> making it a runtime option is preferable. A problem here is that the
> user has no way to change the default configuration before the GC is
> initialized.
> I could imagine always starting with the precise GC, but the user
> can opt out anytime. The GC could then release any additional memory
> it has allocated for precise scanning. If the user opts back in, the
> data structures are rebuilt assuming everything allocated so far as
> void[].

This is the good thing about "initialization-time" configuration. You
avoid all the complexity of changing the internal state of the GC when
option changes, but still let the user start the application, without
recompiling, using different options.

-- 
Leandro Lucarella
Senior R&D Developer
Sociomantic Labs GmbH <http://www.sociomantic.com>


More information about the D-runtime mailing list