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

Issue 7572010: [Sync] Avoid leaking in WeakHandle even when the owner thread is gone (Closed)

Created:
9 years, 4 months ago by akalin
Modified:
9 years, 4 months ago
Reviewers:
Nicolas Zea
CC:
chromium-reviews, ncarter (slow), idana, Raghu Simha, Timur Iskhodzhanov, Alexander Potapenko, pam+watch_chromium.org, Paweł Hajdan Jr., stuartmorgan+watch_chromium.org, tim (not reviewing)
Visibility:
Public.

Description

[Sync] Avoid leaking in WeakHandle even when the owner thread is gone Destroy the underlying WeakPtr right before the owner thread is destroyed. Remove suppression for the leak in the bug. BUG=91465 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=95679

Patch Set 1 #

Total comments: 10

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+205 lines, -75 lines) Patch
M chrome/browser/sync/weak_handle.h View 1 11 chunks +90 lines, -46 lines 0 comments Download
M chrome/browser/sync/weak_handle.cc View 1 1 chunk +83 lines, -7 lines 0 comments Download
M chrome/browser/sync/weak_handle_unittest.cc View 3 chunks +32 lines, -0 lines 0 comments Download
M tools/heapcheck/suppressions.txt View 1 1 chunk +0 lines, -14 lines 0 comments Download
M tools/valgrind/memcheck/suppressions.txt View 1 1 chunk +0 lines, -8 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
akalin
+zea for review
9 years, 4 months ago (2011-08-04 01:05:27 UTC) #1
akalin
On 2011/08/04 01:05:27, akalin wrote: > +zea for review Ping!
9 years, 4 months ago (2011-08-04 18:56:15 UTC) #2
Nicolas Zea
http://codereview.chromium.org/7572010/diff/1/chrome/browser/sync/weak_handle.cc File chrome/browser/sync/weak_handle.cc (right): http://codereview.chromium.org/7572010/diff/1/chrome/browser/sync/weak_handle.cc#newcode33 chrome/browser/sync/weak_handle.cc:33: DestroyOnOwnerThread(); What's the purpose to this call? All DestroyOnOwnerThread ...
9 years, 4 months ago (2011-08-04 19:54:10 UTC) #3
akalin
Addressed all comments, PTAL http://codereview.chromium.org/7572010/diff/1/chrome/browser/sync/weak_handle.cc File chrome/browser/sync/weak_handle.cc (right): http://codereview.chromium.org/7572010/diff/1/chrome/browser/sync/weak_handle.cc#newcode33 chrome/browser/sync/weak_handle.cc:33: DestroyOnOwnerThread(); On 2011/08/04 19:54:10, nzea ...
9 years, 4 months ago (2011-08-04 21:56:52 UTC) #4
akalin
ping!
9 years, 4 months ago (2011-08-05 19:32:17 UTC) #5
Nicolas Zea
9 years, 4 months ago (2011-08-05 19:46:59 UTC) #6
LGTM. I had actually sent one earlier, but it didn't save the comment for some
reason.

Powered by Google App Engine
This is Rietveld 408576698