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

Issue 1699733003: [left-trimming] Avoid creating duplicate handles in builtins.cc (Closed)

Created:
4 years, 10 months ago by Camillo Bruni
Modified:
4 years, 10 months ago
Reviewers:
ulan
CC:
Hannes Payer (out of office), ulan, 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

[left-trimming] Avoid creating duplicate handles in builtins.cc EnsureJSArrayWithWritableFastElements Having several handles pointing to the backing store of an array that gets left-trimmed might cause the gc to start marking a stale-handle still pointing to the old backing-store start. By introducing a separate handle scope for EnsureJSArrayWithWritableFastElements we avoid this issue. Additionally a SLOW_DCHECK in Heap::LeftTrimFixedArray ensurse that there are no more than one active handle pointing to the backing store. BUG=chr:585787 LOG=n Committed: https://crrev.com/6dd16e8eb1440dcce91062ba92b8d1c3df3a121b Cr-Commit-Position: refs/heads/master@{#34022}

Patch Set 1 #

Total comments: 1

Patch Set 2 : using CloseAndEscape #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -6 lines) Patch
M src/builtins.cc View 1 4 chunks +17 lines, -6 lines 0 comments Download
M src/heap/heap.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/heap/heap.cc View 2 chunks +30 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1699733003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1699733003/1
4 years, 10 months ago (2016-02-15 15:29:57 UTC) #2
Camillo Bruni
Hi Ulan, PTAL the proposed fix.
4 years, 10 months ago (2016-02-15 15:30:09 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux64_rel_ng on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_rel_ng/builds/1393) v8_linux_arm64_rel on ...
4 years, 10 months ago (2016-02-15 15:32:56 UTC) #6
ulan
One comments, otherwise looks good. https://codereview.chromium.org/1699733003/diff/1/src/builtins.cc File src/builtins.cc (right): https://codereview.chromium.org/1699733003/diff/1/src/builtins.cc#newcode270 src/builtins.cc:270: if (args == NULL ...
4 years, 10 months ago (2016-02-15 15:33:09 UTC) #7
Camillo Bruni
On 2016/02/15 at 15:33:09, ulan wrote: > One comments, otherwise looks good. > > https://codereview.chromium.org/1699733003/diff/1/src/builtins.cc ...
4 years, 10 months ago (2016-02-15 17:16:50 UTC) #8
Camillo Bruni
ptal again
4 years, 10 months ago (2016-02-15 17:26:38 UTC) #9
ulan
lgtm!
4 years, 10 months ago (2016-02-15 17:28:34 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1699733003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1699733003/20001
4 years, 10 months ago (2016-02-16 09:20:50 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 10 months ago (2016-02-16 09:50:34 UTC) #13
commit-bot: I haz the power
4 years, 10 months ago (2016-02-16 09:51:13 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/6dd16e8eb1440dcce91062ba92b8d1c3df3a121b
Cr-Commit-Position: refs/heads/master@{#34022}

Powered by Google App Engine
This is Rietveld 408576698