By default, it is not possible to trigger at V8 GC programatically.
Use of such an API is tricky and most of the time you will end up
slowing down instead of helping.  For that reason, we have avoided
exposing GC through the API.

We do have a flag in V8 called expose-gc that adds a JavaScript gc()
method when set.

-- Mads

On Thu, Aug 13, 2009 at 12:51 AM, hap497<hap...@gmail.com> wrote:
>
> Hi,
>
> Is it possible to trigger JavaScript Garbage collection
> programatically in V8 JavaScript engine?
> I am looking for ways to minimize memory usage for each page loaded.
> So I am thinking to invoke V8 garbage collection after page load
> completes.
>
> Thank you.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to