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

Issue 1661673003: Fix AtExitManager recursive lock acquisition. (Closed)

Created:
4 years, 10 months ago by Anand Mistry (off Chromium)
Modified:
4 years, 10 months ago
Reviewers:
Mark Mentovai
CC:
chromium-reviews, vmpstr+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix AtExitManager recursive lock acquisition. Also detect when new callbacks are being added while callbacks are being processed. Committed: https://crrev.com/f35088d4ad8a6628d2f50806b84596a647e59a6b Cr-Commit-Position: refs/heads/master@{#374575}

Patch Set 1 #

Patch Set 2 : Detect instead of handle. #

Patch Set 3 : Fix ShadowingAtExitManager. #

Total comments: 5

Patch Set 4 : Update comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -6 lines) Patch
M base/at_exit.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M base/at_exit.cc View 1 2 3 3 chunks +20 lines, -6 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
Anand Mistry (off Chromium)
I'm not sure about this change. Although it fixes the bug, I wonder if it's ...
4 years, 10 months ago (2016-02-03 02:39:07 UTC) #2
Mark Mentovai
I think I’d prefer to investigate the “you can’t add new callbacks while callbacks are ...
4 years, 10 months ago (2016-02-03 15:14:45 UTC) #3
Anand Mistry (off Chromium)
On 2016/02/03 15:14:45, Mark Mentovai wrote: > I think I’d prefer to investigate the “you ...
4 years, 10 months ago (2016-02-08 03:07:20 UTC) #5
Mark Mentovai
https://codereview.chromium.org/1661673003/diff/40001/base/at_exit.cc File base/at_exit.cc (right): https://codereview.chromium.org/1661673003/diff/40001/base/at_exit.cc#newcode59 base/at_exit.cc:59: DCHECK(!g_top_manager->processing_callbacks_); Maybe this should be a CHECK. https://codereview.chromium.org/1661673003/diff/40001/base/at_exit.cc#newcode70 base/at_exit.cc:70: ...
4 years, 10 months ago (2016-02-08 15:15:46 UTC) #6
Anand Mistry (off Chromium)
https://codereview.chromium.org/1661673003/diff/40001/base/at_exit.cc File base/at_exit.cc (right): https://codereview.chromium.org/1661673003/diff/40001/base/at_exit.cc#newcode59 base/at_exit.cc:59: DCHECK(!g_top_manager->processing_callbacks_); On 2016/02/08 15:15:45, Mark Mentovai wrote: > Maybe ...
4 years, 10 months ago (2016-02-08 23:12:25 UTC) #7
Mark Mentovai
LGTM https://codereview.chromium.org/1661673003/diff/40001/base/at_exit.cc File base/at_exit.cc (right): https://codereview.chromium.org/1661673003/diff/40001/base/at_exit.cc#newcode59 base/at_exit.cc:59: DCHECK(!g_top_manager->processing_callbacks_); Anand Mistry wrote: > On 2016/02/08 15:15:45, ...
4 years, 10 months ago (2016-02-09 15:37:46 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1661673003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1661673003/60001
4 years, 10 months ago (2016-02-10 00:30:04 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 10 months ago (2016-02-10 02:18:42 UTC) #12
commit-bot: I haz the power
4 years, 10 months ago (2016-02-10 02:20:03 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/f35088d4ad8a6628d2f50806b84596a647e59a6b
Cr-Commit-Position: refs/heads/master@{#374575}

Powered by Google App Engine
This is Rietveld 408576698