Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Issue 8757002: Don't delete g_vlog_info (Closed)

Created:
9 years ago by stevenjb
Modified:
9 years ago
CC:
chromium-reviews, brettw-cc_chromium.org
Visibility:
Public.

Description

Don't delete g_vlog_info Fixes a race on startup. See issue for details. BUG=chromium-os:20865 TEST=Ensure logging, including VLOG, works. [email protected] Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=112828

Patch Set 1 #

Patch Set 2 : Limit g_vlog_info to two instances and track both. #

Total comments: 11

Patch Set 3 : Add anon namespace and simplify logic #

Total comments: 1

Patch Set 4 : . #

Patch Set 5 : Rebase #

Patch Set 6 : Move global g_dcheck_state out of anonymous namespace #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -4 lines) Patch
M base/logging.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M base/logging.cc View 1 2 3 4 5 4 chunks +19 lines, -4 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
stevenjb
@oshima: Will this change trigger any memory leak detection? I noticed that we were never ...
9 years ago (2011-11-30 21:33:48 UTC) #1
oshima
On 2011/11/30 21:33:48, Steven Bennetts wrote: > @oshima: Will this change trigger any memory leak ...
9 years ago (2011-11-30 23:19:46 UTC) #2
stevenjb
That makes sense, done. PTAL
9 years ago (2011-12-01 00:12:25 UTC) #3
stevenjb
On 2011/12/01 00:12:25, Steven Bennetts wrote: > That makes sense, done. > PTAL (Oh, and ...
9 years ago (2011-12-01 00:13:57 UTC) #4
oshima
http://codereview.chromium.org/8757002/diff/3002/base/logging.cc File base/logging.cc (right): http://codereview.chromium.org/8757002/diff/3002/base/logging.cc#newcode369 base/logging.cc:369: VlogInfo* vlog_info = NULL; how about DCHECK(!vlog_info_second); vlog_info_second = ...
9 years ago (2011-12-01 16:28:48 UTC) #5
stevenjb
http://codereview.chromium.org/8757002/diff/3002/base/logging.cc File base/logging.cc (right): http://codereview.chromium.org/8757002/diff/3002/base/logging.cc#newcode369 base/logging.cc:369: VlogInfo* vlog_info = NULL; I'm not sure I understand ...
9 years ago (2011-12-01 16:51:41 UTC) #6
akalin
http://codereview.chromium.org/8757002/diff/3002/base/logging.cc File base/logging.cc (right): http://codereview.chromium.org/8757002/diff/3002/base/logging.cc#newcode68 base/logging.cc:68: VlogInfo* g_vlog_info_first = NULL; static and/or anon namespace for ...
9 years ago (2011-12-01 17:03:24 UTC) #7
stevenjb
PTAL http://codereview.chromium.org/8757002/diff/3002/base/logging.cc File base/logging.cc (right): http://codereview.chromium.org/8757002/diff/3002/base/logging.cc#newcode68 base/logging.cc:68: VlogInfo* g_vlog_info_first = NULL; On 2011/12/01 17:03:24, akalin ...
9 years ago (2011-12-01 19:09:38 UTC) #8
akalin
LGTM http://codereview.chromium.org/8757002/diff/10001/base/logging.cc File base/logging.cc (right): http://codereview.chromium.org/8757002/diff/10001/base/logging.cc#newcode425 base/logging.cc:425: VlogInfo* vlog_info = g_vlog_info; did you mean to ...
9 years ago (2011-12-01 19:31:19 UTC) #9
oshima
LGTM , other than the comment akalin made.
9 years ago (2011-12-01 19:57:38 UTC) #10
stevenjb
On 2011/12/01 19:31:19, akalin wrote: > LGTM > > http://codereview.chromium.org/8757002/diff/10001/base/logging.cc > File base/logging.cc (right): > ...
9 years ago (2011-12-01 20:05:16 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/8757002/12002
9 years ago (2011-12-01 20:12:46 UTC) #12
commit-bot: I haz the power
Presubmit check for 8757002-12002 failed and returned exit status 1. Running presubmit commit checks ...
9 years ago (2011-12-01 20:12:49 UTC) #13
stevenjb
+ thakis, willchan for owners approval
9 years ago (2011-12-01 20:24:07 UTC) #14
Nico
Sounds more like Will's type of thing :-)
9 years ago (2011-12-01 20:31:18 UTC) #15
stevenjb
Will still isn't around, bus sicne oshima + akalin approved, I'm going to TBR this. ...
9 years ago (2011-12-02 20:00:38 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/8757002/12002
9 years ago (2011-12-02 20:03:05 UTC) #17
commit-bot: I haz the power
Presubmit check for 8757002-12002 failed and returned exit status 1. Running presubmit commit checks ...
9 years ago (2011-12-02 20:03:08 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/8757002/12002
9 years ago (2011-12-02 20:30:40 UTC) #19
commit-bot: I haz the power
Try job failure for 8757002-12002 (retry) on win_rel for step "compile" (clobber build). It's a ...
9 years ago (2011-12-02 20:51:55 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/8757002/15002
9 years ago (2011-12-02 22:18:36 UTC) #21
commit-bot: I haz the power
9 years ago (2011-12-03 00:30:10 UTC) #22
Change committed as 112828

Powered by Google App Engine
This is Rietveld 408576698