Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Issue 3011009: Add a check that weak object handle is not in NEAR_DEATH state after weak callback invocation. (Closed)

Created:
10 years, 5 months ago by antonm
Modified:
9 years, 4 months ago
CC:
v8-dev
Visibility:
Public.

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. Committed: http://code.google.com/p/v8/source/detail?r=5096

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressing Mads' comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -16 lines) Patch
M include/v8.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M src/global-handles.cc View 1 2 chunks +8 lines, -4 lines 0 comments Download
M src/profile-generator.cc View 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/test-api.cc View 3 chunks +4 lines, -1 line 0 comments Download
M test/cctest/test-heap.cc View 3 chunks +2 lines, -11 lines 0 comments Download
M test/cctest/test-mark-compact.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
antonm
Mads and Misha, may you have a look? Misha, could you have a closer look ...
10 years, 5 months ago (2010-07-19 12:39:17 UTC) #1
Mads Ager (chromium)
LGTM http://codereview.chromium.org/3011009/diff/1/2 File include/v8.h (right): http://codereview.chromium.org/3011009/diff/1/2#newcode140 include/v8.h:140: * This callback should either explicitly |Dispose| |object| ...
10 years, 5 months ago (2010-07-19 13:04:49 UTC) #2
antonm
Thanks a lot, Mads. http://codereview.chromium.org/3011009/diff/1/2 File include/v8.h (right): http://codereview.chromium.org/3011009/diff/1/2#newcode140 include/v8.h:140: * This callback should either ...
10 years, 5 months ago (2010-07-19 13:24:24 UTC) #3
mnaganov (inactive)
10 years, 5 months ago (2010-07-19 13:50:46 UTC) #4
Great! Thanks, Anton!

Powered by Google App Engine
This is Rietveld 408576698