V8 garbage collector callbacks for measuring GC activity
问题 I have a small question related to V8 6.7.240 GC behavior and AddGCPrologueCallback / AddGCEpilogueCallback callbacks. A little story behind the problem: we launch custom JS code using V8 engine, and in order to limit execution by time we have a watchdog (separate thread with isolate->TerminateExecution() call) that monitors code and kills it in case of long running, but with respect to GC activity. So, if code execution timeout equals to 200ms , GC activity takes 300ms and code takes 199ms