We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d4dd80 commit 0024b82Copy full SHA for 0024b82
src/mono/mono/utils/dlmalloc.c
@@ -19,13 +19,24 @@
19
* - the defines below
20
*/
21
22
+#include <config.h>
23
#include "mono-mmap.h"
24
25
#define USE_DL_PREFIX 1
26
#define USE_LOCKS 1
27
+
28
+#ifdef HOST_WASM
29
+#pragma clang diagnostic ignored "-Wunused-variable"
30
+/* Use sbrk to allocate memory, and never release pages since emscripten mmap is fake */
31
+#define HAVE_MORECORE 1
32
+#define NO_MALLINFO 1
33
+#undef HAVE_MMAP
34
+#define HAVE_MMAP 0
35
+#else
36
/* Use mmap for allocating memory */
37
#define HAVE_MORECORE 0
38
#define NO_MALLINFO 1
39
+#endif // HOST_WASM
40
#include <mono/utils/dlmalloc.h>
41
42
/*
0 commit comments