Thanks, This was useful.

2016-11-07 12:53 GMT+02:00 Jochen Eisinger <[email protected]>:

> in general, you can check bit.ly/v8-api-changes to learn about
> replacements for deprecated and removed APIs
>
> On Mon, Nov 7, 2016 at 11:51 AM Michael Lippautz <[email protected]>
> wrote:
>
>> On Fri, Nov 4, 2016 at 4:01 PM Ivan P. <[email protected]> wrote:
>>
>> Hello, I am porting my app to latest stable version of the V8 engine from
>> quite legacy V8 3.19.
>> I was using v8::V8::AddMemoryAllocationCallback() to set callaback on
>> the memory allocation actions.
>> But now I can't find this function. What is analog to this in the new V8?
>> I am porting to version 5.3.332.45
>>
>>
>> AddMemoryAllocationCallback has been removed because its semantics were
>> not clearly defined.
>>
>> You can use Isolate::GetHeapSpaceStatistics from a combination of
>> (a) a GC epilogue callback registered using Isolate::AddGCEpilogueCallback
>> (b) an interrupt registered using Isolate::RequestInterrupt.
>>
>> For coarse-grained (up to a couple %) info (a) will be enough as the GC
>> will kick in if memory grows above certain limits. (b) is needed if you
>> want more fine-grained statistics.
>>
>> -Michael
>>
>> --
>> --
>> v8-users mailing list
>> [email protected]
>> http://groups.google.com/group/v8-users
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "v8-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> --
> v8-users mailing list
> [email protected]
> http://groups.google.com/group/v8-users
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "v8-users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/v8-users/Xcvt8E5KKkw/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to