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

Issue 1018283002: Reland "Fix memory leak caused by field type in descriptor array." (Closed)

Created:
5 years, 9 months ago by ulan
Modified:
5 years, 8 months ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Reland "Fix memory leak caused by field type in descriptor array." BUG=v8:3877 LOG=NO Committed: https://crrev.com/c56fa73699bc7d6799c7ebfe55848005bf9b62e4 Cr-Commit-Position: refs/heads/master@{#27362}

Patch Set 1 #

Patch Set 2 : Fix type of cleared weak cell to be None #

Total comments: 1

Patch Set 3 : Rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -29 lines) Patch
M src/objects.h View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M src/objects.cc View 1 2 8 chunks +43 lines, -19 lines 0 comments Download
M src/objects-debug.cc View 1 1 chunk +4 lines, -2 lines 1 comment Download
M src/objects-inl.h View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M src/property.h View 1 chunk +7 lines, -3 lines 0 comments Download
M test/cctest/test-heap.cc View 1 2 1 chunk +34 lines, -0 lines 0 comments Download
M test/cctest/test-migrations.cc View 1 chunk +5 lines, -3 lines 0 comments Download
M test/mjsunit/mjsunit.status View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
ulan
PTAL. Fix is in delta between PS1 and PS2
5 years, 9 months ago (2015-03-19 10:46:00 UTC) #2
Erik Corry
lgtm https://codereview.chromium.org/1018283002/diff/20001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/1018283002/diff/20001/src/objects.cc#newcode1703 src/objects.cc:1703: if (type->IsClass()) return Map::WeakCellForMap(type->AsClass()->Map()); You could assert here ...
5 years, 9 months ago (2015-03-19 11:45:18 UTC) #4
Toon Verwaest
lgtm This is getting a bit out of hand with double-wrapped types... can you remove ...
5 years, 9 months ago (2015-03-19 12:20:34 UTC) #5
ulan
On 2015/03/19 12:20:34, Toon Verwaest wrote: > lgtm > > This is getting a bit ...
5 years, 9 months ago (2015-03-23 10:59:08 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1018283002/40001
5 years, 9 months ago (2015-03-23 10:59:26 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 9 months ago (2015-03-23 11:20:44 UTC) #10
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/c56fa73699bc7d6799c7ebfe55848005bf9b62e4 Cr-Commit-Position: refs/heads/master@{#27362}
5 years, 9 months ago (2015-03-23 11:21:04 UTC) #11
Jakob Kummerow
5 years, 8 months ago (2015-04-11 12:00:58 UTC) #13
Message was sent while issue was closed.
https://codereview.chromium.org/1018283002/diff/40001/src/objects-debug.cc
File src/objects-debug.cc (right):

https://codereview.chromium.org/1018283002/diff/40001/src/objects-debug.cc#ne...
src/objects-debug.cc:293: bool type_is_any = field_type->Is(HeapType::Any());
Shouldn't this be the other way round, i.e. HeapType::Any()->Is(field_type) ?
AKAIF "t->Is(Any)" will be true for every type t, whereas "Any->Is(t)" is only
true when t == Any.

Powered by Google App Engine
This is Rietveld 408576698