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

Issue 284773004: Skip write barriers when updating the weak hash table. (Closed)

Created:
6 years, 7 months ago by ulan
Modified:
6 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Skip write barriers when updating the weak hash table. Write barrier on the weak hash table makes all its pointers strong, which can cause a memory leak. BUG=359401 LOG=Y TEST=cctest/test-heap/NoWeakHashTableLeakWithIncrementalMarking R=hpayer@chromium.org, mstarzinger@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=21299

Patch Set 1 #

Patch Set 2 : #

Total comments: 10

Patch Set 3 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -4 lines) Patch
M src/heap.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/mark-compact.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/objects.cc View 1 2 2 chunks +9 lines, -3 lines 0 comments Download
M test/cctest/test-heap.cc View 1 2 2 chunks +36 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
ulan
PTAL. This is the quick fix with regression test we discussed.
6 years, 7 months ago (2014-05-13 17:16:33 UTC) #1
Hannes Payer (out of office)
lgtm with nits https://codereview.chromium.org/284773004/diff/10001/test/cctest/test-heap.cc File test/cctest/test-heap.cc (right): https://codereview.chromium.org/284773004/diff/10001/test/cctest/test-heap.cc#newcode3907 test/cctest/test-heap.cc:3907: i::FLAG_compilation_cache = false; why i::FLAG_compilation_cache = ...
6 years, 7 months ago (2014-05-14 06:47:45 UTC) #2
ulan
https://codereview.chromium.org/284773004/diff/10001/test/cctest/test-heap.cc File test/cctest/test-heap.cc (right): https://codereview.chromium.org/284773004/diff/10001/test/cctest/test-heap.cc#newcode3907 test/cctest/test-heap.cc:3907: i::FLAG_compilation_cache = false; On 2014/05/14 06:47:45, Hannes Payer wrote: ...
6 years, 7 months ago (2014-05-14 07:27:09 UTC) #3
Michael Starzinger
Looking good. https://codereview.chromium.org/284773004/diff/10001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/284773004/diff/10001/src/objects.cc#newcode16171 src/objects.cc:16171: table->set(EntryToValueIndex(entry), *value, SKIP_WRITE_BARRIER); nit: Can we add ...
6 years, 7 months ago (2014-05-14 08:38:29 UTC) #4
ulan
https://codereview.chromium.org/284773004/diff/10001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/284773004/diff/10001/src/objects.cc#newcode16171 src/objects.cc:16171: table->set(EntryToValueIndex(entry), *value, SKIP_WRITE_BARRIER); On 2014/05/14 08:38:30, Michael Starzinger wrote: ...
6 years, 7 months ago (2014-05-14 08:54:04 UTC) #5
Michael Starzinger
LGTM from my end.
6 years, 7 months ago (2014-05-14 09:00:15 UTC) #6
ulan
6 years, 7 months ago (2014-05-14 09:12:28 UTC) #7
Message was sent while issue was closed.
Committed patchset #3 manually as r21299 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698