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.)
isolate = v8::Isolate::New();
v8::Locker v8ThreadLock(isolate);
v8::Isolate::Scope isolate_scope(isolate);
V8::SetFatalErrorHandler(FatalErrorCallback);
Oliver
--
--
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.