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

Issue 1642913002: Speculatively handle weak member clearing while creating iteration vector. (Closed)

Created:
4 years, 10 months ago by sof
Modified:
4 years, 10 months ago
Reviewers:
oilpan-reviews, haraken
CC:
chromium-reviews, blink-reviews-css, dglazkov+blink, apavlov+blink_chromium.org, darktears, blink-reviews, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Speculatively handle weak member clearing while creating iteration vector. CSSFontSelector keeps a set of weakly referenced clients; when notifying those the set is copied into a temporary heap vector before iterating. Allocating that vector might potentially cause a GC, which in turn could cause some of the weak references to be cleared. With the outcome that the temporary vector will contain empty tail elements. Speculatively check&handle that eventuality when iterating. R=haraken BUG=568173 Committed: https://crrev.com/29c36f00c3ca2f967891c15dc14bcc651c100bfb Cr-Commit-Position: refs/heads/master@{#372112}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -2 lines) Patch
M third_party/WebKit/Source/core/css/CSSFontSelector.cpp View 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
sof
please take a look.
4 years, 10 months ago (2016-01-28 14:55:06 UTC) #2
haraken
If the conservative GC hits during the copyToVector, won't it already break the resulted vector ...
4 years, 10 months ago (2016-01-28 15:04:34 UTC) #3
sof
On 2016/01/28 15:04:34, haraken wrote: > If the conservative GC hits during the copyToVector, won't ...
4 years, 10 months ago (2016-01-28 15:07:25 UTC) #4
haraken
On 2016/01/28 15:07:25, sof wrote: > On 2016/01/28 15:04:34, haraken wrote: > > If the ...
4 years, 10 months ago (2016-01-28 15:12:37 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1642913002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1642913002/1
4 years, 10 months ago (2016-01-28 15:19:21 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 10 months ago (2016-01-28 17:05:21 UTC) #10
commit-bot: I haz the power
4 years, 10 months ago (2016-01-28 17:07:17 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/29c36f00c3ca2f967891c15dc14bcc651c100bfb
Cr-Commit-Position: refs/heads/master@{#372112}

Powered by Google App Engine
This is Rietveld 408576698