Skip to content

Commit

Permalink
Revert "Use sbrk instead of mmap for dlmalloc on wasm"
Browse files Browse the repository at this point in the history
This reverts commit 0024b82.
  • Loading branch information
kg committed Mar 27, 2024
1 parent 0024b82 commit 34ed5c4
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/mono/mono/utils/dlmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,13 @@
* - the defines below
*/

#include <config.h>
#include "mono-mmap.h"

#define USE_DL_PREFIX 1
#define USE_LOCKS 1

#ifdef HOST_WASM
#pragma clang diagnostic ignored "-Wunused-variable"
/* Use sbrk to allocate memory, and never release pages since emscripten mmap is fake */
#define HAVE_MORECORE 1
#define NO_MALLINFO 1
#undef HAVE_MMAP
#define HAVE_MMAP 0
#else
/* Use mmap for allocating memory */
#define HAVE_MORECORE 0
#define NO_MALLINFO 1
#endif // HOST_WASM
#include <mono/utils/dlmalloc.h>

/*
Expand Down

0 comments on commit 34ed5c4

Please sign in to comment.