Annotate mapped memory regions for LeakSanitizer.
authormstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 14 Jan 2014 14:00:29 +0000 (14:00 +0000)
committermstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 14 Jan 2014 14:00:29 +0000 (14:00 +0000)
commitf5d050bcea55554fb6db3691d57d2352bcaebd8c
treebdfe4631086e96d61012f49cda4881fa318ff23e
parentbe4c1bdac2411f7036a30e5b62ed2a6c40eb2ed4
Annotate mapped memory regions for LeakSanitizer.

Add in-code annotations for LeakSanitizer to treat any memory allocated through
the VirtualMemory class as a source of live pointers. This change eliminates
false positive leak reports when running Chromium under LSan.

BUG=chromium:328552
R=mstarzinger@chromium.org
LOG=Y

Review URL: https://codereview.chromium.org/137313002

Patch from Sergey Matveev <earthdok@chromium.org>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18589 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/platform-linux.cc