in reply to Re: How to capture out of memory excpetion in perl?
in thread How to capture out of memory excpetion in perl?

In my experience with similar things, the idea is that your code gets called (via signal or callback) when the program dips into the emergency pool ($^M). It should then immediately rummage around and try to free stuff, then try to reallocate the emergency pool. If it fails, then you're probably doomed.

Unfortunately, I don't see a relevant callback for $^M. If so, then there's no way to tell when $^M has been used, and I don't see how it can be useful.

  • Comment on Re^2: How to capture out of memory excpetion in perl?

Replies are listed 'Best First'.
Re^3: How to capture out of memory excpetion in perl?
by BrowserUk (Patriarch) on Apr 24, 2008 at 02:36 UTC