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

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

Created:
9 years, 8 months ago by Alexander Potapenko
Modified:
9 years, 6 months ago
CC:
chromium-reviews, brettw-cc_chromium.org, Timur Iskhodzhanov, willchan no longer on Chromium
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=82460

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : '' #

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

Messages

Total messages: 8 (0 generated)
Alexander Potapenko
Please review
9 years, 8 months ago (2011-04-15 13:01:53 UTC) #1
jar (doing other things)
There is also one other caller that uses this FactoryGet pattern in stats_histogram.cc. It would ...
9 years, 8 months ago (2011-04-15 15:53:37 UTC) #2
Alexander Potapenko
Annotated the rest of histogram.cc, changed stats_histogram.{cc.h}, fixed the suppressions. Please take another look. http://codereview.chromium.org/6869009/diff/1/base/metrics/histogram.cc ...
9 years, 8 months ago (2011-04-18 09:45:13 UTC) #3
jar (doing other things)
LGTM There is perchance one nit you could handle below. http://codereview.chromium.org/6869009/diff/4001/base/allocator/allocator.gyp File base/allocator/allocator.gyp (right): http://codereview.chromium.org/6869009/diff/4001/base/allocator/allocator.gyp#newcode341 ...
9 years, 8 months ago (2011-04-18 18:29:54 UTC) #4
Alexander Potapenko
http://codereview.chromium.org/6869009/diff/4001/base/allocator/allocator.gyp File base/allocator/allocator.gyp (right): http://codereview.chromium.org/6869009/diff/4001/base/allocator/allocator.gyp#newcode341 base/allocator/allocator.gyp:341: '-Wl,-u_ZN15HeapLeakChecker12IgnoreObjectEPKv,-u_ZN15HeapLeakChecker14UnIgnoreObjectEPKv', On 2011/04/18 18:29:54, jar wrote: > I don't ...
9 years, 8 months ago (2011-04-19 10:05:10 UTC) #5
Alexander Potapenko
Oh, in fact PRESUBMIT disliked the merged suppressions, so I've separated them back.
9 years, 8 months ago (2011-04-19 10:08:30 UTC) #6
Alexander Potapenko
On 2011/04/19 10:08:30, Alexander Potapenko wrote: > Oh, in fact PRESUBMIT disliked the merged suppressions, ...
9 years, 8 months ago (2011-04-19 10:18:04 UTC) #7
willchan no longer on Chromium
9 years, 8 months ago (2011-04-20 15:00:24 UTC) #8
LGTM rubberstamp (trusting jar's review here).

Powered by Google App Engine
This is Rietveld 408576698