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

Issue 177018: Don't use the same descriptor array in several maps (Closed)

Created:
11 years, 3 months ago by Søren Thygesen Gjesse
Modified:
9 years, 7 months ago
Reviewers:
William Hesse
CC:
v8-dev
Visibility:
Public.

Description

Don't use the same descriptor array in several maps. Make a copy of the descriptor array when copying a map with pre-allocated properties. The garbage collector assumes that no two maps point to the same descriptor array. A simple reduction is missing. BUG=http://crbug.com/20330 TEST=none Committed: http://code.google.com/p/v8/source/detail?r=2780

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
M src/objects.cc View 1 chunk +4 lines, -1 line 1 comment Download

Messages

Total messages: 2 (0 generated)
Søren Thygesen Gjesse
11 years, 3 months ago (2009-08-28 10:57:49 UTC) #1
William Hesse
11 years, 3 months ago (2009-08-28 11:07:18 UTC) #2
LGTM.

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

http://codereview.chromium.org/177018/diff/1/2#newcode2932
Line 2932: Object* descriptors =
This entire test should be removed from CopyDropDescriptors, and instead done at
the call site where CopyDropDescriptors is used without immediately overwriting
the empty descriptor array.  But this is OK for now.

Powered by Google App Engine
This is Rietveld 408576698