Skip to content

Commit 7d9e9eb

Browse files
committed
riscv(support,linux): make mremap() non-moving due to VA space woes
1 parent b3ac55c commit 7d9e9eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lj_alloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ static void *CALL_MREMAP_(void *ptr, size_t osz, size_t nsz, int flags)
365365
#define CALL_MREMAP(addr, osz, nsz, mv) CALL_MREMAP_((addr), (osz), (nsz), (mv))
366366
#define CALL_MREMAP_NOMOVE 0
367367
#define CALL_MREMAP_MAYMOVE 1
368-
#if LJ_64 && (!LJ_GC64 || LJ_TARGET_ARM64)
368+
#if LJ_64 && (!LJ_GC64 || LJ_TARGET_ARM64 || LJ_TARGET_RISCV64)
369369
#define CALL_MREMAP_MV CALL_MREMAP_NOMOVE
370370
#else
371371
#define CALL_MREMAP_MV CALL_MREMAP_MAYMOVE

0 commit comments

Comments
 (0)