On 2013/11/05 13:52:22, Yury Semikhatsky wrote:
On 2013/11/05 13:31:53, Toon Verwaest wrote:
> lgtm
Benedikt, can you provide more details on the problem please? The feature
is
disabled by default and I'm curious to learn more about the scenario
where it
would lead to a memory corruption.
I discovered the problem while adding a new Hydrogen code stub that
allocates.
There are two problems in here: (a) you cannot simply trace the stack if
called
from somewhere within a Hydrogen code stub (and the same is true for native
code
stubs), because the state of the stack is undefined and you need to take
great
care to get a proper traceable stack, and (b) depending on the state of the
heap, you'll pass a bump pointer to your runtime function that points after
the
heap, where you try to place a filler map. This happened with the
test-heap-profiler/TrackAllocations test, where in my case the new string
add
stub is generated at runtime after your flag is turned on. You probably
didn't
notice (at least with your test case) because all stubs were already part
of the
snapshot and hence those allocations weren't tracked.
https://codereview.chromium.org/59583003/
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" 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/groups/opt_out.