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

Issue 7071036: Introduce the ANNOTATE_LEAKING_OBJECT_PTR annotation that can be used to mark (Closed)

Created:
9 years, 7 months ago by Alexander Potapenko
Modified:
9 years, 6 months ago
CC:
chromium-reviews, Timur Iskhodzhanov, cbentzel+watch_chromium.org, pam+watch_chromium.org, brettw-cc_chromium.org, darin-cc_chromium.org, stuartmorgan+watch_chromium.org
Visibility:
Public.

Description

Introduce the ANNOTATE_LEAKING_OBJECT_PTR annotation that can be used to mark heap allocated objects as intentionally leaked ones. Annotate the histograms produced by {Histogram,BooleanHistogram,LinearHistogram,CustomHistogram}::FactoryGet(), as leaked. Rename StatsHistogram::StatsHistogramFactoryGet to StatsHistogram::FactoryGet, annotate the result as leaky, update the suppressions. BUG=79322 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=87278

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 3

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -10 lines) Patch
M base/allocator/allocator.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M base/debug/leak_annotations.h View 1 2 2 chunks +14 lines, -2 lines 0 comments Download
M base/metrics/histogram.cc View 1 2 3 2 chunks +13 lines, -2 lines 0 comments Download
M net/disk_cache/stats.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M net/disk_cache/stats_histogram.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M net/disk_cache/stats_histogram.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M tools/heapcheck/suppressions.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tools/valgrind/memcheck/suppressions.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
Alexander Potapenko
Please take a look. Two differences between this and http://codereview.chromium.org/6869009: -- each histogram object is ...
9 years, 7 months ago (2011-05-27 11:24:08 UTC) #1
commit-bot: I haz the power
No LGTM from valid reviewers yet.
9 years, 7 months ago (2011-05-27 12:32:57 UTC) #2
jar (doing other things)
See comments below. http://codereview.chromium.org/7071036/diff/18/base/metrics/histogram.cc File base/metrics/histogram.cc (right): http://codereview.chromium.org/7071036/diff/18/base/metrics/histogram.cc#newcode105 base/metrics/histogram.cc:105: ANNOTATE_LEAKING_OBJECT_PTR(histogram); // see crbug.com/79322 Perchance this ...
9 years, 7 months ago (2011-05-27 18:13:01 UTC) #3
Alexander Potapenko
http://codereview.chromium.org/7071036/diff/18/base/metrics/histogram.cc File base/metrics/histogram.cc (right): http://codereview.chromium.org/7071036/diff/18/base/metrics/histogram.cc#newcode105 base/metrics/histogram.cc:105: ANNOTATE_LEAKING_OBJECT_PTR(histogram); // see crbug.com/79322 Indeed. I've forgotten to upload ...
9 years, 6 months ago (2011-05-30 08:00:38 UTC) #4
Alexander Potapenko
(See Patch Set 4) Some tests call RegisterOrDeleteDuplicate with (lock_ == NULL) || (!histograms_), so ...
9 years, 6 months ago (2011-05-30 08:25:44 UTC) #5
jar (doing other things)
9 years, 6 months ago (2011-05-30 17:07:51 UTC) #6
LGTM

Powered by Google App Engine
This is Rietveld 408576698