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

Issue 23901002: [blink]: Annotate StringImpl::createStatic leak for LeakSanitizer. (Closed)

Created:
7 years, 3 months ago by r.kasibhatla
Modified:
7 years, 3 months ago
CC:
blink-reviews, loislo+blink_chromium.org, eae+blinkwatch, yurys+blink_chromium.org, abarth-chromium, dglazkov+blink, adamk+blink_chromium.org, jeez
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

[blink]: Annotate StringImpl::createStatic leak for LeakSanitizer. Adding the annotation WTF_ANNOTATE_SCOPED_MEMORY_LEAK in StringImpl::createStatic to ensure leak sanitizer doesn't report this as a leak. This patch just handles Leak Sanitizer only. The changes for Heap Checker will be done in a follow up patch. BUG=268258 TEST=Running content_unittests with Leak Sanitizer enabled. Output of Leak Sanitizer before the fix: http://pastebin.com/niDgRNAQ Output of Leak Sanitizer after the fix: http://pastebin.com/v6hF43Lj Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157315

Patch Set 1 #

Total comments: 1

Patch Set 2 : First patch in set of patches to enable annotating known leaks in blink. #

Total comments: 3

Patch Set 3 : #

Total comments: 4

Patch Set 4 : Addressed abarth comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -0 lines) Patch
A Source/wtf/LeakAnnotations.h View 1 2 3 1 chunk +91 lines, -0 lines 0 comments Download
M Source/wtf/text/StringImpl.cpp View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M Source/wtf/wtf.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
r.kasibhatla
This is just a preliminary patch. If the tone of changes is ok, then I ...
7 years, 3 months ago (2013-09-03 15:32:26 UTC) #1
abarth-chromium
Seems fine. There are some style issues, but we can clean those up when you're ...
7 years, 3 months ago (2013-09-03 15:40:12 UTC) #2
earthdok
Generally this looks OK. Just make sure to never include this file in any public ...
7 years, 3 months ago (2013-09-03 16:12:36 UTC) #3
r.kasibhatla
PTAL. Thanks.
7 years, 3 months ago (2013-09-04 13:26:19 UTC) #4
earthdok
lgtm https://codereview.chromium.org/23901002/diff/23001/Source/wtf/LeakAnnotations.h File Source/wtf/LeakAnnotations.h (right): https://codereview.chromium.org/23901002/diff/23001/Source/wtf/LeakAnnotations.h#newcode54 Source/wtf/LeakAnnotations.h:54: #ifdef __cplusplus Isn't this always true? We have ...
7 years, 3 months ago (2013-09-04 13:43:00 UTC) #5
r.kasibhatla
On 2013/09/04 13:43:00, earthdok wrote: > lgtm > > https://codereview.chromium.org/23901002/diff/23001/Source/wtf/LeakAnnotations.h > File Source/wtf/LeakAnnotations.h (right): > ...
7 years, 3 months ago (2013-09-04 14:35:43 UTC) #6
abarth-chromium
https://codereview.chromium.org/23901002/diff/29001/Source/wtf/LeakAnnotations.h File Source/wtf/LeakAnnotations.h (right): https://codereview.chromium.org/23901002/diff/29001/Source/wtf/LeakAnnotations.h#newcode49 Source/wtf/LeakAnnotations.h:49: */ We typically use //-style comments (except for the ...
7 years, 3 months ago (2013-09-04 17:34:15 UTC) #7
r.kasibhatla
On 2013/09/04 17:34:15, abarth wrote: > https://codereview.chromium.org/23901002/diff/29001/Source/wtf/LeakAnnotations.h > File Source/wtf/LeakAnnotations.h (right): > > https://codereview.chromium.org/23901002/diff/29001/Source/wtf/LeakAnnotations.h#newcode49 > ...
7 years, 3 months ago (2013-09-05 07:43:47 UTC) #8
abarth-chromium
lgtm
7 years, 3 months ago (2013-09-05 17:27:26 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/r.kasibhatla@samsung.com/23901002/34001
7 years, 3 months ago (2013-09-05 17:27:38 UTC) #10
commit-bot: I haz the power
7 years, 3 months ago (2013-09-05 18:22:29 UTC) #11
Message was sent while issue was closed.
Change committed as 157315

Powered by Google App Engine
This is Rietveld 408576698