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

Issue 2484153004: [heap] Ensure that the sweeper does not lose unswept pages. (Closed)

Created:
4 years, 1 month ago by ulan
Modified:
4 years, 1 month ago
CC:
v8-reviews_googlegroups.com, Hannes Payer (out of office), ulan
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[heap] Ensure that the sweeper does not lose unswept pages. This fixes a race between the sweeper and the array buffer tracker that causes the sweeper to skip unswept pages. The scenario: 1. Mark-compact GC adds page p to the sweeping_list_ of the sweeper. 2. GC finishes, the main thread starts executinng JS. 3. The main thread takes p->mutex to unregister an array buffer. 4. A sweeper thread removes p from the sweeping_list_ and tries to take p->mutex. The try fails. The sweeper drops p and continues to the next page. 5. During selection of evacuation candidate in the next GC we hit page->SweepingDone() assert. BUG=chromium:650314 Committed: https://crrev.com/b621987195cdb1b2031809d9f10aff3005190161 Cr-Commit-Position: refs/heads/master@{#40857}

Patch Set 1 #

Total comments: 2

Patch Set 2 : address comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -11 lines) Patch
M src/heap/mark-compact.cc View 1 3 chunks +10 lines, -11 lines 0 comments Download

Messages

Total messages: 12 (6 generated)
ulan
ptal
4 years, 1 month ago (2016-11-09 11:42:17 UTC) #3
Michael Lippautz
lgtm https://codereview.chromium.org/2484153004/diff/1/src/heap/mark-compact.cc File src/heap/mark-compact.cc (right): https://codereview.chromium.org/2484153004/diff/1/src/heap/mark-compact.cc#newcode3747 src/heap/mark-compact.cc:3747: // If this page was already swept in ...
4 years, 1 month ago (2016-11-09 11:44:34 UTC) #4
ulan
https://codereview.chromium.org/2484153004/diff/1/src/heap/mark-compact.cc File src/heap/mark-compact.cc (right): https://codereview.chromium.org/2484153004/diff/1/src/heap/mark-compact.cc#newcode3747 src/heap/mark-compact.cc:3747: // If this page was already swept in the ...
4 years, 1 month ago (2016-11-09 11:47:54 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2484153004/20001
4 years, 1 month ago (2016-11-09 11:48:04 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-09 12:14:19 UTC) #10
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:27:20 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b621987195cdb1b2031809d9f10aff3005190161
Cr-Commit-Position: refs/heads/master@{#40857}

Powered by Google App Engine
This is Rietveld 408576698