On Tue, Apr 19, 2011 at 9:05 AM, Matthias Ernst <[email protected]> wrote:

> AdjustAmountOfExternalAllocatedMemory" allows you to inform the GC that
> there's hidden cost involved and trigger it to run more eagerly. I'm not
> positive, but I guess V8 will behave as if this amount had been allocated on
> the JS heap instead.
>

Tip: when using  AdjustAmountOfExternalAllocatedMemory(), be sure to use it
during the constructors AND destructors. i.e., don't use add the memory
count but also remove it when your objects are freed.

But as Matthias said, using it is not necessary. It's just fudges v8's
memory metrics a bit.

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to