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

Issue 7919026: Fix InvalidationNotifierTest leak and suppressions (Closed)

Created:
9 years, 3 months ago by rlarocque
Modified:
9 years, 3 months ago
CC:
chromium-reviews, ncarter (slow), idana, Raghu Simha, pam+watch_chromium.org, Paweł Hajdan Jr., tim (not reviewing)
Visibility:
Public.

Description

Fix InvalidationNotifierTest leak and suppressions When XmppConnection is deleted, its TaskPump member is not deleted immediately. The destructor enqueues a task to the message loop to have it deleted later. A comment in ~XmppConnection that explains why it does this. In the unit tests, the TaskPump would get leaked because the message loop would never get a chance to run that deletion task. This commit fixes the problem by running all pending tasks on that message loop before we exit the test. This commit removes the suppression for bug_80238. Issue 80238 hasn't been seen for a while, so it's probably safe to remove. It's only relation to issue 79651 is that it happened in the same set of tests; the two issues probably had different root causes. This commit renames the suppression bug_79651, which is still necessary, but isn't actually related to issue 79651. When I tried to remove it, I ran into the issue now known as issue 96904. I've renamed the suppression to match the issue it's actually suppressing. Discussion of these changes can be found on the bug tracker, spread across the pages for issues 79651, 80238 and 96904. BUG=79651, 80238, 96904 TEST=InvalidationNotifierTest Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=102193

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -31 lines) Patch
M chrome/browser/sync/notifier/invalidation_notifier_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M tools/heapcheck/suppressions.txt View 4 chunks +11 lines, -31 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
rlarocque
I won't be committing this until http://codereview.chromium.org/7919023/ makes its way through the pipeline, so take ...
9 years, 3 months ago (2011-09-19 18:47:52 UTC) #1
akalin
LGTM probably want to put it through the linux_valgrind trybot
9 years, 3 months ago (2011-09-20 18:32:04 UTC) #2
akalin
On 2011/09/20 18:32:04, akalin wrote: > LGTM > > probably want to put it through ...
9 years, 3 months ago (2011-09-21 20:24:35 UTC) #3
rlarocque
On 2011/09/21 20:24:35, akalin wrote: > On 2011/09/20 18:32:04, akalin wrote: > > LGTM > ...
9 years, 3 months ago (2011-09-21 21:11:14 UTC) #4
commit-bot: I haz the power
9 years, 3 months ago (2011-09-21 23:22:16 UTC) #5
Change committed as 102193

Powered by Google App Engine
This is Rietveld 408576698