Jarrett Billingsley wrote:
On Tue, Dec 2, 2008 at 11:57 AM, Russell Lewis
<[EMAIL PROTECTED]> wrote:
It seems that D has (or rather, can have) a trivial solution to this
problem.  Allow programs to register with the GC when they have memory which
can be easily freed (caches and such).  Then you can make "out of memory" a
non-recoverable error, since it only hits when we fail to recover enough.

...

Thoughts?

I've considered this as well.  I've had a few occasions where I really
wanted something to trigger upon garbage collection.  Conveniently,
this is also dead easy to implement.

I think some gc schemes implement this.

Reply via email to