Reviewers: Mads Ager, Michail Naganov,
Message:
Mads and Misha,
may you have a look?
Misha, could you have a closer look at TokenEnumeration stuff?
tia,
anton.
Description:
Add a check that weak object handle is not in NEAR_DEATH state after weak
callback invocation.
If object enters NEAR_DEATH state, it must be explicitly cleared and/or
disposed, otherwise
it would retain JS object forever. Note as well that parameter is reset to
NULL
on first
invocation so weak handle callback would be in hard situation.
Please review this at http://codereview.chromium.org/3011009/show
Affected files:
M include/v8.h
M src/global-handles.cc
M src/profile-generator.cc
M test/cctest/test-api.cc
M test/cctest/test-heap.cc
M test/cctest/test-mark-compact.cc
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev