When is it time for a 1.0 feature freeze?
Walter Bright
newshound at digitalmars.com
Sat Sep 2 12:57:43 PDT 2006
Serg Kovrov wrote:
> If only programmer could have some control over GC, it would be just
> fine. For example to query GC's memory pool and decide to free some
> amount if it exceed some threshold. Walter, any comments on this?
Because, as I said in another post, malloc/free/new/delete don't return
memory to the operating system, what apps often do if they need to
allocate/free some small number of very large buffers is to do them
separately, usually with a call straight into the OS API.
You can do the same thing in D, using the same technique and pretty much
identical code.
More information about the Digitalmars-d
mailing list