Is "Out of Memory" a recoverable error?

Walter Bright newshound1 at
Tue Dec 2 10:17:05 PST 2008

Jarrett Billingsley wrote:
> On Tue, Dec 2, 2008 at 11:57 AM, Russell Lewis
> <webmaster at> 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.

More information about the Digitalmars-d mailing list