On Wed, Sep 3, 2014 at 6:53 AM, Oliver Bock <[email protected]> wrote:
> If I create many isolates to run v8 in many threads then I will run out of
> memory.  How can I catch these out-of-memory situations so that I can output
> an appropriate error message?  SetFatalErrorHandler() does not work for me
> because it needs an isolate to be installed before it is called.  However
> the out-of-memory error occurs during the second line below, before I can
> call SetFatalErrorHandler().  (The Locker calls V8::Initialize(), which
> eventually runs out of memory.)

I don't think you can catch them.  Last I looked at it, the isolate
initialization step neither handled OOM errors or resource limits like
RLIMIT_NPROC graciously.

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to