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

Issue 1034163002: Use atomic operation to read the length of a fixed 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

Use atomic operation to read the length of a fixed array. This fixes a race where - mutator changes the fixed array length by trimming it, - sweeper thread reads the length of the fixed array. Also rename FROM_GC and FROM_MUTATOR to be more precise. BUG=chromium:462908 LOG=NO Committed: https://crrev.com/aae2c01740364454b807613b8d9d66a33ee45073 Cr-Commit-Position: refs/heads/master@{#27869}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Rebase and rename #

Patch Set 3 : Fix compile error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -31 lines) Patch
M src/elements.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/factory.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/heap/heap.h View 1 1 chunk +5 lines, -3 lines 0 comments Download
M src/heap/heap.cc View 1 3 chunks +6 lines, -6 lines 0 comments Download
M src/heap/mark-compact.cc View 1 3 chunks +6 lines, -5 lines 0 comments Download
M src/isolate.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/layout-descriptor.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/objects.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/objects.cc View 1 9 chunks +14 lines, -9 lines 0 comments Download
M src/runtime/runtime-regexp.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-heap.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 11 (4 generated)
ulan
PTAL
5 years, 9 months ago (2015-03-26 13:46:06 UTC) #2
Erik Corry
The description looks wrong. These are synchronized operations, not atomic ones.
5 years, 9 months ago (2015-03-26 14:39:30 UTC) #4
ulan
On 2015/03/26 14:39:30, Erik Corry wrote: > The description looks wrong. These are synchronized operations, ...
5 years, 9 months ago (2015-03-26 15:00:11 UTC) #5
Hannes Payer (out of office)
lgtm, one nit https://codereview.chromium.org/1034163002/diff/1/src/heap/heap.h File src/heap/heap.h (right): https://codereview.chromium.org/1034163002/diff/1/src/heap/heap.h#newcode748 src/heap/heap.h:748: enum InvocationMode { SWEEPING_IS_OFF, SWEEPING_STARTED }; ...
5 years, 9 months ago (2015-03-26 16:27:24 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1034163002/40001
5 years, 8 months ago (2015-04-16 08:00:25 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 8 months ago (2015-04-16 08:39:24 UTC) #10
commit-bot: I haz the power
5 years, 8 months ago (2015-04-16 08:39:33 UTC) #11
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/aae2c01740364454b807613b8d9d66a33ee45073
Cr-Commit-Position: refs/heads/master@{#27869}

Powered by Google App Engine
This is Rietveld 408576698