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

Issue 173060: Do not allow GlobalHandles::Create to reuse destoryed nodes (ones from free l... (Closed)

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

Description

Do not allow GlobalHandles::Create to reuse destoryed nodes (ones from free list) while performing GlobalHandles::PostGarbageCollectionProcessing as those might be already deleted (in C++ sense). Committed: http://code.google.com/p/v8/source/detail?r=2724

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -0 lines) Patch
M src/global-handles.cc View 1 chunk +4 lines, -0 lines 2 comments Download
M test/cctest/test-api.cc View 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
antonm
11 years, 4 months ago (2009-08-19 16:33:48 UTC) #1
Mads Ager (chromium)
http://codereview.chromium.org/173060/diff/5/6 File src/global-handles.cc (right): http://codereview.chromium.org/173060/diff/5/6#newcode162 Line 162: set_first_free(NULL); Doesn't this leak the nodes on the ...
11 years, 4 months ago (2009-08-19 17:32:07 UTC) #2
antonm
http://codereview.chromium.org/173060/diff/5/6 File src/global-handles.cc (right): http://codereview.chromium.org/173060/diff/5/6#newcode162 Line 162: set_first_free(NULL); On 2009/08/19 17:32:07, Mads Ager wrote: > ...
11 years, 4 months ago (2009-08-19 17:39:32 UTC) #3
Mads Ager (chromium)
11 years, 4 months ago (2009-08-19 18:32:01 UTC) #4
LGTM

I get it now.  Nodes are added to the free_list when the global handle is
explictly Disposed through the API.  The actual nodes are delete in the post GC
processing.

Thanks for the additional explanation. :-)

Powered by Google App Engine
This is Rietveld 408576698