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

Issue 1576853002: [heap] Adjust condition for AdjustLiveBytes to avoid concurrent access w/ sweeper (Closed)

Created:
4 years, 11 months ago by Michael Lippautz
Modified:
4 years, 11 months ago
CC:
v8-reviews_googlegroups.com, Hannes Payer (out of office), ulan
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[heap] Adjust condition for AdjustLiveBytes to avoid concurrent access w/ sweeper A concurrent sweeper thread can access the same markbit cell as the main thread during right trimming a fixed array, resulting in a data race on a markbit cell. Previously we checked whether we were currently marking incrementally, filtering out this case. The current check has the benefit of keeping live_bytes accurate (modulo other bugs) until the sweeper starts. BUG=chromium:576193 LOG=N Committed: https://crrev.com/779aa924f6d0066fe134ccbdc2abb9e5e15e100f Cr-Commit-Position: refs/heads/master@{#33203}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M src/heap/heap.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/heap/mark-compact.cc View 2 chunks +1 line, -1 line 2 comments Download

Messages

Total messages: 10 (5 generated)
Michael Lippautz
https://codereview.chromium.org/1576853002/diff/1/src/heap/mark-compact.cc File src/heap/mark-compact.cc (right): https://codereview.chromium.org/1576853002/diff/1/src/heap/mark-compact.cc#newcode3985 src/heap/mark-compact.cc:3985: sweeping_in_progress_ = true; This is not really needed as ...
4 years, 11 months ago (2016-01-11 09:49:56 UTC) #3
Hannes Payer (out of office)
lgtm https://codereview.chromium.org/1576853002/diff/1/src/heap/mark-compact.cc File src/heap/mark-compact.cc (right): https://codereview.chromium.org/1576853002/diff/1/src/heap/mark-compact.cc#newcode3985 src/heap/mark-compact.cc:3985: sweeping_in_progress_ = true; On 2016/01/11 09:49:56, Michael Lippautz ...
4 years, 11 months ago (2016-01-11 12:28:41 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1576853002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1576853002/1
4 years, 11 months ago (2016-01-11 12:36:17 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 11 months ago (2016-01-11 12:58:08 UTC) #8
commit-bot: I haz the power
4 years, 11 months ago (2016-01-11 12:59:10 UTC) #10
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/779aa924f6d0066fe134ccbdc2abb9e5e15e100f
Cr-Commit-Position: refs/heads/master@{#33203}

Powered by Google App Engine
This is Rietveld 408576698