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

Issue 10857008: Added warning when URLRequestContextGetter leaks. (Closed)

Created:
8 years, 4 months ago by Andrew T Wilson (Slow)
Modified:
8 years, 4 months ago
Reviewers:
eroman
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Added warning when URLRequestContextGetter leaks. If URLRequestContextGetter's refcount drops to zero after the IO thread has already gone away, the object leaks. This can be tricky to track down, so now we emit a warning message to the logs. BUG=142702 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=151792

Patch Set 1 #

Patch Set 2 : Fixed release-mode compile issue. #

Patch Set 3 : Removed extraneous blank line. #

Total comments: 4

Patch Set 4 : Review feedback #

Patch Set 5 : Removed ref to IO thread. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -1 line) Patch
M net/url_request/url_request_context_getter.cc View 1 2 3 4 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
Andrew T Wilson (Slow)
PTAL
8 years, 4 months ago (2012-08-15 16:57:02 UTC) #1
eroman
lgtm http://codereview.chromium.org/10857008/diff/7002/net/url_request/url_request_context_getter.cc File net/url_request/url_request_context_getter.cc (right): http://codereview.chromium.org/10857008/diff/7002/net/url_request/url_request_context_getter.cc#newcode26 net/url_request/url_request_context_getter.cc:26: // Can't force-delete the object here, because some ...
8 years, 4 months ago (2012-08-15 18:00:44 UTC) #2
Andrew T Wilson (Slow)
https://chromiumcodereview.appspot.com/10857008/diff/7002/net/url_request/url_request_context_getter.cc File net/url_request/url_request_context_getter.cc (right): https://chromiumcodereview.appspot.com/10857008/diff/7002/net/url_request/url_request_context_getter.cc#newcode26 net/url_request/url_request_context_getter.cc:26: // Can't force-delete the object here, because some derived ...
8 years, 4 months ago (2012-08-15 18:07:17 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/atwilson@chromium.org/10857008/11002
8 years, 4 months ago (2012-08-15 21:12:21 UTC) #4
commit-bot: I haz the power
8 years, 4 months ago (2012-08-15 23:52:33 UTC) #5
Change committed as 151792

Powered by Google App Engine
This is Rietveld 408576698