On Fri, Aug 21, 2009 at 3:14 PM, yiufai <[email protected]> wrote:
> I have an application that using the v8 engine to do embedding. > After the execution, I would to clear all memory created by v8 engine > itself. How to do that??? (memory leakage detected) > Currently the only way to do this is to call exit() and let the OS kernel collect the memory. v8 makes heavy use of static-scope data and does not provide a public API which allows one to force a GC run or to completely empty out any existing contexts. It cleans up only when/if it decides to (and v8 does NOT guaranty that a proper cleanup will happen before v8 shuts down, apparently because that impacts Chrome's performance). -- ----- stephan beal http://wanderinghorse.net/home/stephan/ --~--~---------~--~----~------------~-------~--~----~ v8-users mailing list [email protected] http://groups.google.com/group/v8-users -~----------~----~----~----~------~----~------~--~---
