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

Issue 2660463003: CrossThreadPersistent should acquire a lock before assigning (Closed)

Created:
3 years, 10 months ago by keishi
Modified:
3 years, 10 months ago
Reviewers:
oilpan-reviews, haraken, sof
CC:
chromium-reviews, oilpan-reviews, Mads Ager (chromium), blink-reviews, kinuko+watch, kouhei+heap_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

CrossThreadPersistent should acquire a lock before assigning The root set in CrossThreadPersistent should not change while a thread is trying to mark as it may cause objects unmarked when it should be marked. This acquires a lock before assigning a new pointer to a CrossThreadPersistent node. BUG=681488 Review-Url: https://codereview.chromium.org/2660463003 Cr-Commit-Position: refs/heads/master@{#449548} Committed: https://chromium.googlesource.com/chromium/src/+/7c916610d4392731e6520d2bfd60c674303bb7a9

Patch Set 1 #

Total comments: 1

Patch Set 2 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -4 lines) Patch
M third_party/WebKit/Source/platform/heap/Persistent.h View 1 1 chunk +3 lines, -4 lines 0 comments Download

Messages

Total messages: 23 (16 generated)
keishi
I think I made a mistake. We already acquire the lock in PersistentBase::initialize/uninitialize but we ...
3 years, 10 months ago (2017-02-09 04:30:16 UTC) #6
haraken
LGTM
3 years, 10 months ago (2017-02-09 04:40:28 UTC) #7
sof
lgtm The CTP global lock could be a candidate for a cheaper, low-contention lock. https://codereview.chromium.org/2660463003/diff/1/third_party/WebKit/Source/platform/heap/Persistent.h ...
3 years, 10 months ago (2017-02-09 06:36:24 UTC) #11
sof
Did you locate a particular assign() that ran into this subtle issue?
3 years, 10 months ago (2017-02-09 07:46:49 UTC) #12
keishi
On 2017/02/09 07:46:49, sof wrote: > Did you locate a particular assign() that ran into ...
3 years, 10 months ago (2017-02-09 09:45:00 UTC) #13
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/2660463003/20001
3 years, 10 months ago (2017-02-10 05:19:30 UTC) #20
commit-bot: I haz the power
3 years, 10 months ago (2017-02-10 05:25:50 UTC) #23
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/7c916610d4392731e6520d2bfd60...

Powered by Google App Engine
This is Rietveld 408576698