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

Issue 2707753004: Switch IconLoader::ReadIconThreadID from FILE to UI (Closed)

Created:
3 years, 10 months ago by tzik
Modified:
3 years, 10 months ago
Reviewers:
oshima, sky
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move IconLoader::ReadIconThreadID from FILE to UI gfx::Image is not thread safe due to non-thread-safe ref count of its gfx::ImageStorage. Especially, Image instances in ResourceBundle are cached and shared globally. So, touching it from non-UI thread causes a data race on its ref count. BUG=688072, 468010 Review-Url: https://codereview.chromium.org/2707753004 Cr-Commit-Position: refs/heads/master@{#452250} Committed: https://chromium.googlesource.com/chromium/src/+/65452e0405106b58dd554d134679ace6acc26d00

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : rebase #

Total comments: 2

Patch Set 4 : +comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M chrome/browser/icon_loader_chromeos.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 37 (21 generated)
tzik
PTAL
3 years, 10 months ago (2017-02-20 11:45:40 UTC) #7
oshima
While I understand that gfx::Image itself isn't safe (which makes the locking in RB meaningless, ...
3 years, 10 months ago (2017-02-21 00:32:45 UTC) #11
tzik
On 2017/02/21 00:32:45, oshima wrote: > While I understand that gfx::Image itself isn't safe (which ...
3 years, 10 months ago (2017-02-21 01:00:37 UTC) #12
oshima
On 2017/02/21 01:00:37, tzik wrote: > On 2017/02/21 00:32:45, oshima wrote: > > While I ...
3 years, 10 months ago (2017-02-21 01:50:25 UTC) #13
tzik
On 2017/02/21 01:50:25, oshima wrote: > On 2017/02/21 01:00:37, tzik wrote: > > On 2017/02/21 ...
3 years, 10 months ago (2017-02-21 04:17:35 UTC) #14
oshima
On 2017/02/21 04:17:35, tzik wrote: > On 2017/02/21 01:50:25, oshima wrote: > > On 2017/02/21 ...
3 years, 10 months ago (2017-02-21 07:07:53 UTC) #19
oshima
Actually I wonder if we need to post the task to read. Can't we just ...
3 years, 10 months ago (2017-02-21 07:12:21 UTC) #20
tzik
On 2017/02/21 07:07:53, oshima wrote: > On 2017/02/21 04:17:35, tzik wrote: > > On 2017/02/21 ...
3 years, 10 months ago (2017-02-21 09:36:33 UTC) #21
oshima
looks like windows is still using FILE thread, so lgtm
3 years, 10 months ago (2017-02-22 04:40:24 UTC) #22
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/2707753004/40001
3 years, 10 months ago (2017-02-22 06:34:14 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/369776)
3 years, 10 months ago (2017-02-22 06:50:46 UTC) #27
tzik
+sky. PTAL as a //chrome owner.
3 years, 10 months ago (2017-02-22 06:56:06 UTC) #29
sky
LGTM https://codereview.chromium.org/2707753004/diff/40001/chrome/browser/icon_loader_chromeos.cc File chrome/browser/icon_loader_chromeos.cc (right): https://codereview.chromium.org/2707753004/diff/40001/chrome/browser/icon_loader_chromeos.cc#newcode195 chrome/browser/icon_loader_chromeos.cc:195: return content::BrowserThread::UI; Please add a comment. It isn't ...
3 years, 10 months ago (2017-02-22 17:12:02 UTC) #30
tzik
https://codereview.chromium.org/2707753004/diff/40001/chrome/browser/icon_loader_chromeos.cc File chrome/browser/icon_loader_chromeos.cc (right): https://codereview.chromium.org/2707753004/diff/40001/chrome/browser/icon_loader_chromeos.cc#newcode195 chrome/browser/icon_loader_chromeos.cc:195: return content::BrowserThread::UI; On 2017/02/22 17:12:02, sky wrote: > Please ...
3 years, 10 months ago (2017-02-22 22:02:56 UTC) #31
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/2707753004/60001
3 years, 10 months ago (2017-02-22 22:03:46 UTC) #34
commit-bot: I haz the power
3 years, 10 months ago (2017-02-22 22:54:04 UTC) #37
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/65452e0405106b58dd554d134679...

Powered by Google App Engine
This is Rietveld 408576698