Skip to content

Commit 6d6f25c

Browse files
GeoffroyAubeyTautvydasZilys
authored andcommitted
Do not use MONO_MMAP_32BIT on Apple platforms MMAP_32BITS used to be undefined on darwin but was added recently which leads to unexpected behavior
Signed-off-by: Tautvydas Žilys <[email protected]>
1 parent 9da2c69 commit 6d6f25c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mono/utils/mono-codeman.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static MonoCodeManagerCallbacks code_manager_callbacks;
5757
#define MAX_WASTAGE 32
5858
#define MIN_BSIZE 32
5959

60-
#ifdef __x86_64__
60+
#if defined(__x86_64__) && !defined(__APPLE__)
6161
#define ARCH_MAP_FLAGS MONO_MMAP_32BIT
6262
#else
6363
#define ARCH_MAP_FLAGS 0

0 commit comments

Comments
 (0)