Skip to content

Commit 56e31e3

Browse files
committed
Restore dlmalloc as default allocator.
1 parent b3a1d45 commit 56e31e3

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/settings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ var TOTAL_MEMORY = 16777216;
120120
// allocate very many small objects, you should use emmalloc since it's
121121
// smaller. Otherwise, if you do allocate many small objects, dlmalloc
122122
// is usually worth the extra size.
123-
var MALLOC = "emmalloc";
123+
var MALLOC = "dlmalloc";
124124

125125
// If 1, then when malloc would fail we abort(). This is nonstandard behavior,
126126
// but makes sense for the web since we have a fixed amount of memory that

tests/test_core.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,11 +1133,6 @@ def test_setjmp_noleak(self):
11331133
printf("ok.\n");
11341134
}
11351135
'''
1136-
# This test uses mallinfo() to track memory leaks in a way
1137-
# that is not applicable to emmalloc, so ensure that the
1138-
# test is using dlmalloc.
1139-
self.set_setting('MALLOC', 'dlmalloc')
1140-
11411136
self.do_run(src, r'''ok.''')
11421137

11431138
def test_exceptions(self):

0 commit comments

Comments
 (0)