File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 10
10
# go through that custom allocator.
11
11
#
12
12
# Therefore, the presence of any calls to "vanilla" allocation/free functions
13
- # (e.g. malloc(), free()) is a bug.
13
+ # from within SpiderMonkey itself (e.g. malloc(), free()) is a bug. Calls from
14
+ # within mozglue and non-SpiderMonkey locations are fine; there is a list of
15
+ # exceptions that can be added to as the need arises.
14
16
#
15
17
# This script checks for the presence of such disallowed vanilla
16
18
# allocation/free function in SpiderMonkey when it's built as a library. It
@@ -159,6 +161,10 @@ def main():
159
161
if filename == 'umutex.o' :
160
162
continue
161
163
164
+ # Ignore allocations from decimal conversion functions inside mozglue.
165
+ if filename == 'Decimal.o' :
166
+ continue
167
+
162
168
fn = m .group (2 )
163
169
if filename == 'jsutil.o' :
164
170
jsutil_cpp .add (fn )
You can’t perform that action at this time.
0 commit comments