Skip to content

Commit

Permalink
riscv(support,linux): make mremap() non-moving due to VA space woes
Browse files Browse the repository at this point in the history
  • Loading branch information
infiWang committed Jun 27, 2024
1 parent b3ac55c commit 7d9e9eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lj_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ static void *CALL_MREMAP_(void *ptr, size_t osz, size_t nsz, int flags)
#define CALL_MREMAP(addr, osz, nsz, mv) CALL_MREMAP_((addr), (osz), (nsz), (mv))
#define CALL_MREMAP_NOMOVE 0
#define CALL_MREMAP_MAYMOVE 1
#if LJ_64 && (!LJ_GC64 || LJ_TARGET_ARM64)
#if LJ_64 && (!LJ_GC64 || LJ_TARGET_ARM64 || LJ_TARGET_RISCV64)
#define CALL_MREMAP_MV CALL_MREMAP_NOMOVE
#else
#define CALL_MREMAP_MV CALL_MREMAP_MAYMOVE
Expand Down

0 comments on commit 7d9e9eb

Please sign in to comment.