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

Issue 347021: Make LoadLog refcounted-thread safe.... (Closed)

Created:
11 years, 1 month ago by eroman
Modified:
9 years, 6 months ago
Reviewers:
Timur Iskhodzhanov
CC:
chromium-reviews_googlegroups.com, darin (slow to review)
Visibility:
Public.

Description

Make LoadLog refcounted-thread safe. This also backs out r26610 (these are the changes to host_resolver_impl.cc), since that code is no longer necessary if LoadLog is refcounted thread safe. LoadLog itself is not thread safe -- however making its refcounting threadsafe simplifies passing it across thread boundaries. Initially I had avoided doing this, and instead was trying to be very careful in when callers would AddRef/Release to avoid races. This approach however turned out to be fragile, and it was difficult to chase down all of the dependencies (they just kept popping up). So now I am changing that decision, and opting for the simpler approach which will be much more robust. The performance impact should be negligable. BUG=22272 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=30525

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address timurrr's comment change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -10 lines) Patch
M net/base/host_resolver_impl.cc View 4 chunks +4 lines, -9 lines 0 comments Download
M net/base/load_log.h View 1 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Timur Iskhodzhanov
http://codereview.chromium.org/347021/diff/1/3 File net/base/load_log.h (right): http://codereview.chromium.org/347021/diff/1/3#newcode19 Line 19: // that it can be easily passed between ...
11 years, 1 month ago (2009-10-29 21:01:56 UTC) #1
eroman
http://codereview.chromium.org/347021/diff/1/3 File net/base/load_log.h (right): http://codereview.chromium.org/347021/diff/1/3#newcode19 Line 19: // that it can be easily passed between ...
11 years, 1 month ago (2009-10-29 21:04:52 UTC) #2
Timur Iskhodzhanov
LGTM
11 years, 1 month ago (2009-10-29 21:06:29 UTC) #3
eroman
11 years, 1 month ago (2009-10-29 21:31:09 UTC) #4

          

Powered by Google App Engine
This is Rietveld 408576698