beforeGarbageCollection

Walter Bright newshound1 at digitalmars.com
Thu Jun 17 00:28:29 PDT 2010


Andrei Alexandrescu wrote:
> I'm thinking of a feature that would improve the memory footprint of D 
> programs. Say druntime provided a function:
> 
> void beforeGarbageCollection(void delegate() callMe);
> 
> The runtime would guarantee that callMe gets called before any 
> collection. That would allow modules to clean up caches (e.g. free 
> lists) to improve their memory profile.
> 
> Any thoughts, please share.

Thread local or thread global?


More information about the Digitalmars-d mailing list