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

Issue 4193008: Cleanup histogram syncronizer a bit... (Closed)

Created:
10 years, 1 month ago by jar (doing other things)
Modified:
9 years, 6 months ago
Reviewers:
DaveMoore
CC:
chromium-reviews, ben+cc_chromium.org, raman
Visibility:
Public.

Description

Cleanup histogram syncronizer a bit I adjusted the code so tha there was no chance for the pending response count to get to zero until all the increments had been applied, and all the rendereres had been notified. Without this change, there was a chance that the tally would hit zero prematurely, triggering a a premature completion. I went through the code clarifying where a lock was needed, and where it wasn't. In all cases, we now either take a lock, or assert we're consistently on a single thread (meaning we don't need a lock). r=davemoore Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=64781

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -23 lines) Patch
M chrome/browser/metrics/histogram_synchronizer.h View 1 3 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/metrics/histogram_synchronizer.cc View 1 5 chunks +20 lines, -14 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
jar (doing other things)
Dave, I looked closely and found one more issue. I decided we should keep the ...
10 years, 1 month ago (2010-11-01 19:19:17 UTC) #1
DaveMoore
10 years, 1 month ago (2010-11-02 17:53:00 UTC) #2
LGTM

Powered by Google App Engine
This is Rietveld 408576698