Skip to content

Commit 6ec341a

Browse files
GeoffroyAubeyUnityAlex
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 cab6e38 commit 6ec341a

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
@@ -68,7 +68,7 @@ static const MonoCodeManagerCallbacks *code_manager_callbacks;
6868
#define MAX_WASTAGE 32
6969
#define MIN_BSIZE 32
7070

71-
#ifdef __x86_64__
71+
#if defined(__x86_64__) && !defined(__APPLE__)
7272
#define ARCH_MAP_FLAGS MONO_MMAP_32BIT
7373
#else
7474
#define ARCH_MAP_FLAGS 0

0 commit comments

Comments
 (0)