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

Issue 1502153005: Revert of Release Oilpan heap singletons prior to LSan leak detection. (Closed)

Created:
5 years ago by Lambros
Modified:
5 years ago
Reviewers:
oilpan-reviews, haraken, sof
CC:
chromium-reviews, eae+blinkwatch, apavlov+blink_chromium.org, blink-reviews-wtf_chromium.org, rwlbuis, blink-reviews-style_chromium.org, blink-reviews-css, blink-reviews-html_chromium.org, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews-bindings_chromium.org, gavinp+loader_chromium.org, blink-reviews, Mads Ager (chromium), darktears, loading-reviews+fetch_chromium.org, Nate Chapin, tyoshino+watch_chromium.org, oilpan-reviews, kouhei+heap_chromium.org, Mikhail
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of Release Oilpan heap singletons prior to LSan leak detection. (patchset #9 id:160001 of https://codereview.chromium.org/1491253004/ ) Reason for revert: Might have caused compile failures on official Win builders: https://chromegw.corp.google.com/i/official.desktop/builders/win/builds/268/steps/compile/logs/stdio https://chromegw.corp.google.com/i/official.desktop/builders/win64/builds/264/steps/compile/logs/stdio FAILED: ninja -t msvc -e environment.x64 -- "C:\b\depot_tools\win_toolchain\vs2013_files\VC\bin\amd64\cl.exe" /nologo /showIncludes /FC @obj\third_party\WebKit\Source\core\html\webcore_html_2.HTMLTableElement.obj.rsp /c ..\..\third_party\WebKit\Source\core\html\HTMLTableElement.cpp /Foobj\third_party\WebKit\Source\core\html\webcore_html_2.HTMLTableElement.obj /Fdobj\third_party\WebKit\Source\core\webcore_html_2.cc.pdb c:\b\build\slave\win64\build\src\third_party\webkit\source\core\html\htmltableelement.cpp(413) : error C2039: 'registerAsStaticReference' : is not a member of 'blink::Persistent<blink::StylePropertySet>' c:\b\build\slave\win64\build\src\third_party\webkit\source\core\html\htmltableelement.cpp(420) : error C2039: 'registerAsStaticReference' : is not a member of 'blink::Persistent<blink::StylePropertySet>' c:\b\build\slave\win64\build\src\third_party\webkit\source\core\html\htmltableelement.cpp(423) : error C2039: 'registerAsStaticReference' : is not a member of 'blink::Persistent<blink::StylePropertySet>' c:\b\build\slave\win64\build\src\third_party\webkit\source\core\html\htmltableelement.cpp(520) : error C2039: 'registerAsStaticReference' : is not a member of 'blink::Persistent<blink::StylePropertySet>' c:\b\build\slave\win64\build\src\third_party\webkit\source\core\html\htmltableelement.cpp(523) : error C2039: 'registerAsStaticReference' : is not a member of 'blink::Persistent<blink::StylePropertySet>' ninja: build stopped: subcommand failed. Original issue's description: > Release Oilpan heap singletons prior to LSan leak detection. > > Make Oilpan and LSan cooperate better. As Persistent<> references > created via DEFINE_STATIC_LOCAL() and similar will be reachable to > LSan's leak detection pass, the objects they refer to outside of > the Oilpan heap will be reported as leaking. > > (This is in contrast to what happens in the non-Oilpan setting, > where the (leaked) pointer created via DEFINE_STATIC_LOCAL() is > stored in a local "static"; such non-global references are not > considered roots to LSan and hence the objects reachable from > those will not be reported as leaking.) > > Address the problem on the Oilpan side by having such "static" > Persistent<>ly-held singletons be registered and tracked such > that we're able to release them all just before shutting down > and performing an extra round of GCs. Leaving a cleaner heap > for LSan to work over. And to report no leaks over, ideally. > > As part of the changes needed to support this for Oilpan, > wtf/LeakAnnotations.h offerings has been renamed and changed > a bit: > > * WTF_ANNOTATE_MEMORY_LEAK_SCOPE => LEAK_SANITIZER_DISABLED_SCOPE. > (but see LeakAnnotations.h for macro to use local to wtf/.) > * WTF_ANNOTATE_IGNORE_OBJECT_PTR => LEAK_SANITIZER_IGNORE_OBJECT. > * LEAK_SANITIZER_REGISTER_STATIC_LOCAL(). > > R=haraken > BUG=567257 > > Committed: https://crrev.com/6918d00fae1ab739f89393378fa4adddabacafd2 > Cr-Commit-Position: refs/heads/master@{#363780} TBR=oilpan-reviews@chromium.org,haraken@chromium.org,sigbjornf@opera.com NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=567257 Committed: https://crrev.com/b5daa8ef58d6f02e446ad19cc44dc2c0d192db98 Cr-Commit-Position: refs/heads/master@{#363812}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -257 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/RejectedPromises.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSDefaultStyleSheets.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp View 1 chunk +1 line, -25 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/Resource.cpp View 1 chunk +0 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/html/forms/EmailInputType.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.h View 2 chunks +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/WebThreadSupportingGC.cpp View 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/Handle.h View 5 chunks +1 line, -63 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/ThreadState.h View 3 chunks +0 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/ThreadState.cpp View 2 chunks +0 lines, -33 lines 0 comments Download
M third_party/WebKit/Source/web/WebKit.cpp View 1 chunk +0 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/wtf/BitVector.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/LeakAnnotations.h View 2 chunks +26 lines, -73 lines 0 comments Download
M third_party/WebKit/Source/wtf/StdLibExtras.h View 2 chunks +12 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/StringImpl.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (2 generated)
Lambros
Created Revert of Release Oilpan heap singletons prior to LSan leak detection.
5 years ago (2015-12-08 22:38:51 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1502153005/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1502153005/1
5 years ago (2015-12-08 22:43:07 UTC) #2
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years ago (2015-12-08 22:49:06 UTC) #4
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/b5daa8ef58d6f02e446ad19cc44dc2c0d192db98 Cr-Commit-Position: refs/heads/master@{#363812}
5 years ago (2015-12-08 22:50:08 UTC) #6
haraken
LGTM
5 years ago (2015-12-08 23:25:46 UTC) #7
sof
5 years ago (2015-12-09 06:15:56 UTC) #8
Message was sent while issue was closed.
I think you meant to revert r363591 from your branch, and not r363780. There are
no compile problems with the latter afaik.

Powered by Google App Engine
This is Rietveld 408576698