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

Issue 9453026: Make BootTimesLoader marker usage thread safe (Closed)

Created:
8 years, 10 months ago by Rick Byers
Modified:
8 years, 9 months ago
Reviewers:
DaveMoore
CC:
chromium-reviews, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Make BootTimesLoader marker usage thread safe Manipulate the login/logout marker vectors only on the UI thread. Fixes crashes in ~BootTimesLoader. BUG=chromium-os:24935 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=124412

Patch Set 1 #

Patch Set 2 : Better handle shutdown cases (fix unit test crash) #

Patch Set 3 : Add minor comment #

Total comments: 2

Patch Set 4 : Simplify slightly #

Patch Set 5 : Merge with trunk #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -4 lines) Patch
M chrome/browser/chromeos/boot_times_loader.h View 1 2 3 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/chromeos/boot_times_loader.cc View 1 2 3 5 chunks +38 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Rick Byers
Hey Dave, Can you review my fix for the BootTimesLoader race we discussed? Thanks, Rick
8 years, 10 months ago (2012-02-27 21:05:23 UTC) #1
DaveMoore
http://codereview.chromium.org/9453026/diff/6001/chrome/browser/chromeos/boot_times_loader.cc File chrome/browser/chromeos/boot_times_loader.cc (right): http://codereview.chromium.org/9453026/diff/6001/chrome/browser/chromeos/boot_times_loader.cc#newcode445 chrome/browser/chromeos/boot_times_loader.cc:445: { Why can't this all be done in AddMarker ...
8 years, 10 months ago (2012-02-27 21:52:19 UTC) #2
Rick Byers
http://codereview.chromium.org/9453026/diff/6001/chrome/browser/chromeos/boot_times_loader.cc File chrome/browser/chromeos/boot_times_loader.cc (right): http://codereview.chromium.org/9453026/diff/6001/chrome/browser/chromeos/boot_times_loader.cc#newcode445 chrome/browser/chromeos/boot_times_loader.cc:445: { On 2012/02/27 21:52:19, DaveMoore wrote: > Why can't ...
8 years, 10 months ago (2012-02-27 21:58:22 UTC) #3
DaveMoore
I mean that AddMarker() which already checks if it's on the UI thread could simply ...
8 years, 10 months ago (2012-02-27 22:00:26 UTC) #4
Rick Byers
On 2012/02/27 22:00:26, DaveMoore wrote: > I mean that AddMarker() which already checks if it's ...
8 years, 10 months ago (2012-02-27 22:31:16 UTC) #5
Rick Byers
Here's the simpler version with the extra copy (actually 20 bytes on 64-bit). I like ...
8 years, 9 months ago (2012-02-28 15:10:34 UTC) #6
Rick Byers
Ping - any further comments Dave?
8 years, 9 months ago (2012-02-29 14:41:42 UTC) #7
DaveMoore
lgtm
8 years, 9 months ago (2012-02-29 21:56:11 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rbyers@chromium.org/9453026/19001
8 years, 9 months ago (2012-03-01 14:18:14 UTC) #9
commit-bot: I haz the power
8 years, 9 months ago (2012-03-01 15:44:20 UTC) #10
Change committed as 124412

Powered by Google App Engine
This is Rietveld 408576698