PrintF calls in i::V8::FatalProcessOutOfMemory().

42 views
Skip to first unread message

Jane Chen

unread,
Aug 23, 2016, 8:17:27 PM8/23/16
to v8-users
Embedding v8 4.6.88.

When a JavaScript program executes and runs out of memory, I get some stdout output from the subject function logging the last few GC and stack frames.

Is there anyway to either suppress or redirect the output?

Thanks in advance.


Ben Noordhuis

unread,
Aug 24, 2016, 12:27:37 AM8/24/16
to v8-users
Have you installed a fatal error callback with isolate->SetFatalErrorHandler()?

In newer versions there is a separate isolate->SetOOMErrorHandler()
method but that doesn't exist in 4.6.

Jane Chen

unread,
Aug 24, 2016, 1:19:58 PM8/24/16
to v8-users
I have.  The PrintF calls happen before the user callback is called.

With the embedded scenario, it would be desirable to have some API to suppress or redirect stdout output.
Reply all
Reply to author
Forward
0 new messages