Thanks for the response. Any advice on usage of "AddNearHeapLimitCallback"? [Please see my sample program]
Thanks, Prakash On Tue, Jun 5, 2018 at 2:31 PM, Ben Noordhuis <[email protected]> wrote: > On Tue, Jun 5, 2018 at 6:12 AM, <[email protected]> wrote: > > I recommend taking a look at Laverdet's approach used in Node.js: > > https://github.com/laverdet/isolated-vm > > What isolated-vm does isn't 100% bulletproof either. I think the > advice of "run it in a separate process" still stands. > > For the curious, isolated-vm uses a custom arraybuffer allocator that > tracks how much memory has been allocated and throws a termination > exception when a threshold is exceeded. There's a similar check in a > GC epilogue callback. That only covers some out-of-memory conditions > though, other allocation failures still kill the process. > > -- > -- > v8-users mailing list > [email protected] > http://groups.google.com/group/v8-users > --- > You received this message because you are subscribed to a topic in the > Google Groups "v8-users" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/v8-users/qLs7-XT2Zvg/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- 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.
