Catching out-of-memory situation in V8 without invalidating entire Isolate

26 views
Skip to first unread message

Ivan P.

unread,
Oct 31, 2015, 6:35:36 AM10/31/15
to v8-users
I'm using V8 3.19 in my application. I will need to upgrade soon to some latest V8 version (at least 4.5).

In the V8 3.19 there are API calls V8::IgnoreOutOfMemoryException() and Context::HasOutOfMemoryException() which let me don't invalidate entire isolate when some context fails with OOM and then detect that context have caused OOM. But as I can see, in the latest V8 these API calls are removed. 

So my question is: what is the current technique with latest V8 to get the same effect: don't invalidate entire isolate when some context fails with OOM and then detect that context have caused OOM?

Ben Noordhuis

unread,
Nov 1, 2015, 5:09:27 PM11/1/15
to v8-u...@googlegroups.com
I remember the discussion about removing those functions. The
explanation was that V8 cannot operate reliably under OOM conditions
and therefore will no longer try. In other words, there's nothing you
can do but exit.
Reply all
Reply to author
Forward
0 new messages