On Tue, Jun 5, 2018 at 6:12 AM, <mog...@syntheticsemantics.com> 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 v8-users@googlegroups.com 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 v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.