Commit 38c98e4f authored by Erik de Castro Lopo's avatar Erik de Castro Lopo


Commit 0d1a8d09 added a two step allocator for 64 bit systems. This
allocator mmaps a huge (1 TB) chunk of memory out of which it does
smaller allocations. On AArch64/Arm64 linux, this mmap was failing
due to the Arm64 Linux kernel parameter CONFIG_ARM64_VA_BITS
defaulting to 39 bits.

Therefore reducing the AArch64 value for MBLOCK_SPACE_SIZE to make
this allocation 1/4 TB while remaining 1 TB for other archs.

Reviewers: ezyang, austin, bgamari

Subscribers: thomie

Differential Revision:

GHC Trac Issues: #10682
parent 15c63d2a
......@@ -52,7 +52,12 @@
extern W_ mblock_address_space_begin;
#if aarch64_HOST_ARCH
# define MBLOCK_SPACE_SIZE ((StgWord)1 << 38) /* 1/4 TB */
# define MBLOCK_SPACE_SIZE ((StgWord)1 << 40) /* 1 TB */
# define HEAP_ALLOCED(p) ((W_)(p) >= mblock_address_space_begin && \
(W_)(p) < (mblock_address_space_begin + \
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment