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

Issue 8082023: Fix map modification in transition tree traversal. (Closed)

Created:
9 years, 2 months ago by Michael Starzinger
Modified:
9 years, 2 months ago
CC:
v8-dev
Visibility:
Public.

Description

Fix map modification in transition tree traversal. While traversing the transition tree we build a work-list using the map field of maps. Setting those map values with a write barrier causes black-to-gray changes on maps which are currently not recognized as such, hence their computed size might be off. R=vegorov@chromium.org BUG=v8:1672 TEST=cctest/test-decls/Present Committed: http://code.google.com/p/v8/source/detail?r=9498

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressed comment by Vyacheslav Egorov. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -3 lines) Patch
M src/objects.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/objects.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M src/objects-inl.h View 1 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Michael Starzinger
PTAL.
9 years, 2 months ago (2011-09-30 11:12:20 UTC) #1
Vyacheslav Egorov (Chromium)
LGTM! nice catch http://codereview.chromium.org/8082023/diff/1/src/objects.cc File src/objects.cc (right): http://codereview.chromium.org/8082023/diff/1/src/objects.cc#newcode4477 src/objects.cc:4477: next->set_map(current, SKIP_WRITE_BARRIER); let's introduce a special ...
9 years, 2 months ago (2011-09-30 12:43:33 UTC) #2
Michael Starzinger
9 years, 2 months ago (2011-09-30 13:03:04 UTC) #3
Added new patch set.

http://codereview.chromium.org/8082023/diff/1/src/objects.cc
File src/objects.cc (right):

http://codereview.chromium.org/8082023/diff/1/src/objects.cc#newcode4477
src/objects.cc:4477: next->set_map(current, SKIP_WRITE_BARRIER);
On 2011/09/30 12:43:33, Vyacheslav Egorov wrote:
> let's introduce a special "unsafe" accessor that does not invoke a write
> barrier.
> 
> this will allow us to easily find all places that do unsafe things with map
> field.

Done.

Powered by Google App Engine
This is Rietveld 408576698