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

Issue 1877233005: Rehash and clear deleted entries in weak collections during GC (Closed)

Created:
4 years, 8 months ago by jochen (gone - plz use gerrit)
Modified:
4 years, 8 months ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Rehash and clear deleted entries in weak collections during GC Otherwise, they'll just keep growing until we run out of memory or hit the FixedArray's maximum capacity. BUG=v8:4909 R=hpayer@chromium.org LOG=n Committed: https://crrev.com/e093a047796d4c0575fe63d36529e7fe89b8865d Cr-Commit-Position: refs/heads/master@{#35514}

Patch Set 1 #

Patch Set 2 : updates #

Patch Set 3 : updates #

Patch Set 4 : updates #

Total comments: 1

Patch Set 5 : updates #

Patch Set 6 : updates #

Total comments: 2

Patch Set 7 : updates #

Patch Set 8 : updates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -3 lines) Patch
M src/heap/mark-compact.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M src/heap/mark-compact.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M src/objects.cc View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download
M test/cctest/test-weakmaps.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-weaksets.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
jochen (gone - plz use gerrit)
4 years, 8 months ago (2016-04-14 07:45:46 UTC) #1
jochen (gone - plz use gerrit)
all green :) ptal
4 years, 8 months ago (2016-04-14 10:40:29 UTC) #2
Hannes Payer (out of office)
Can you add a regression test? LGTM with one nit https://codereview.chromium.org/1877233005/diff/60001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/1877233005/diff/60001/src/objects.cc#newcode16880 ...
4 years, 8 months ago (2016-04-14 10:42:39 UTC) #3
jochen (gone - plz use gerrit)
after some digging, here's a better fix - actually free memory from weak collections :)
4 years, 8 months ago (2016-04-14 20:53:03 UTC) #5
Hannes Payer (out of office)
LGTM, one nit https://codereview.chromium.org/1877233005/diff/100001/src/heap/mark-compact.cc File src/heap/mark-compact.cc (right): https://codereview.chromium.org/1877233005/diff/100001/src/heap/mark-compact.cc#newcode2554 src/heap/mark-compact.cc:2554: if ((table->NumberOfDeletedElements() << 1) > table->NumberOfElements()) ...
4 years, 8 months ago (2016-04-15 08:20:12 UTC) #6
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1877233005/diff/100001/src/heap/mark-compact.cc File src/heap/mark-compact.cc (right): https://codereview.chromium.org/1877233005/diff/100001/src/heap/mark-compact.cc#newcode2554 src/heap/mark-compact.cc:2554: if ((table->NumberOfDeletedElements() << 1) > table->NumberOfElements()) { On 2016/04/15 ...
4 years, 8 months ago (2016-04-15 08:21:28 UTC) #7
jochen (gone - plz use gerrit)
made it a constant. ptal.
4 years, 8 months ago (2016-04-15 09:39:14 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1877233005/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1877233005/140001
4 years, 8 months ago (2016-04-15 09:57:26 UTC) #11
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 8 months ago (2016-04-15 10:21:16 UTC) #12
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/e093a047796d4c0575fe63d36529e7fe89b8865d Cr-Commit-Position: refs/heads/master@{#35514}
4 years, 8 months ago (2016-04-15 10:21:51 UTC) #14
Michael Achenbach
4 years, 8 months ago (2016-04-15 12:15:38 UTC) #15
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:140001) has been created in
https://codereview.chromium.org/1891863003/ by machenbach@chromium.org.

The reason for reverting is: [Sheriff] Speculative revert. Suspect for gc stress
crashes, like:
https://build.chromium.org/p/client.v8/builders/V8%20Linux64%20GC%20Stress%20....

Powered by Google App Engine
This is Rietveld 408576698