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

Issue 214025: Make sure that the LoadLog does not get freed on the worker thread during req... (Closed)

Created:
11 years, 3 months ago by eroman
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com, darin (slow to review), brettw
Visibility:
Public.

Description

Make sure that the LoadLog does not get freed on the worker thread during request cancellation. BUG=22272 TEST=must pass existing tests when running with TSAN. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=26610

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -5 lines) Patch
M net/base/host_resolver_impl.cc View 3 chunks +8 lines, -5 lines 2 comments Download

Messages

Total messages: 5 (0 generated)
eroman
Either of timurrr or wtc please review this. (I will consider an LGTM from either ...
11 years, 3 months ago (2009-09-18 19:39:16 UTC) #1
the_wrong_timurrrr
On 2009/09/18 19:39:16, eroman wrote: > Either of timurrr or wtc please review this. > ...
11 years, 3 months ago (2009-09-18 20:06:25 UTC) #2
the_wrong_timurrrr
On 2009/09/18 20:06:25, the_wrong_timurrrr wrote: > On 2009/09/18 19:39:16, eroman wrote: > > Either of ...
11 years, 3 months ago (2009-09-18 20:23:16 UTC) #3
the_wrong_timurrrr
On 2009/09/18 20:23:16, the_wrong_timurrrr wrote: > On 2009/09/18 20:06:25, the_wrong_timurrrr wrote: > > On 2009/09/18 ...
11 years, 3 months ago (2009-09-18 20:38:30 UTC) #4
wtc
11 years, 3 months ago (2009-09-21 18:14:12 UTC) #5
LGTM.  The comments you added are a little ambiguous.

http://codereview.chromium.org/214025/diff/1/2
File net/base/host_resolver_impl.cc (right):

http://codereview.chromium.org/214025/diff/1/2#newcode76
Line 76: // Clear the LoadLog to make sure it won't be released later on the
Do you mean clearing the load log (i.e., emptying the load
log), or releasing our reference to the load log?

http://codereview.chromium.org/214025/diff/1/2#newcode399
Line 399: // Hold a reference to the request's load log as we are about to clear
it.
Nit: it's not clear what "it" refers to here.  Do you mean
clearing the request's reference to the load log, or clearing
the load log itself?  I think you mean the former (clearing
the req->load_log_ field).

Powered by Google App Engine
This is Rietveld 408576698