Bug 1052573 - Generically whitelist memalign calls from anything under memory/. r=njn
authorMike Hommey <mh+mozilla@glandium.org>
Fri, 22 Sep 2017 08:57:23 +0900
changeset 382473 05ad53f12a1bc0128d58fbfa1c61da44774c6a5e
parent 382472 9c0e1bf558e6ae89d69a2875d5afab381643bec9
child 382474 c447512b45a712a19f10feeddaa3ac90d9eef99f
push id95346
push userkwierso@gmail.com
push dateFri, 22 Sep 2017 22:06:27 +0000
treeherdermozilla-inbound@bec1b493c91e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnjn
bugs1052573
milestone58.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1052573 - Generically whitelist memalign calls from anything under memory/. r=njn
config/check_vanilla_allocations.py
--- a/config/check_vanilla_allocations.py
+++ b/config/check_vanilla_allocations.py
@@ -124,19 +124,19 @@ def main():
 
     for line in lines:
         m = re.search(alloc_fns_re, line)
         if m is None:
             continue
 
         filename = m.group(1)
 
-        # mozalloc contains calls to memalign. These are ok, so we whitelist
-        # them.
-        if "mozalloc" in filename:
+        # The memory allocator code contains calls to memalign. These are ok, so
+        # we whitelist them.
+        if "_memory_" in filename:
             continue
 
         fn = m.group(2)
         if filename == 'jsutil.o':
             jsutil_cpp.add(fn)
         else:
             # An allocation is present in a non-special file.  Fail!
             fail("'" + fn + "' present in " + filename)