From f50bf7585a32738c4fb719cb8fc59d02231fc8c3 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Wed, 8 Mar 2017 23:02:24 +0100 Subject: [PATCH] Remove unnecessary mcode alloc pointer check. Also fixes Illumos address space issue reported by Theo Schlossnagle. --- src/lj_mcode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lj_mcode.c b/src/lj_mcode.c index bb7cf96b..f0a1f699 100644 --- a/src/lj_mcode.c +++ b/src/lj_mcode.c @@ -204,8 +204,8 @@ static void mcode_protect(jit_State *J, int prot) /* -- MCode area allocation ----------------------------------------------- */ -#if LJ_TARGET_X64 -#define mcode_validptr(p) ((p) && (uintptr_t)(p) < (uintptr_t)1<<47) +#if LJ_64 +#define mcode_validptr(p) (p) #else #define mcode_validptr(p) ((p) && (uintptr_t)(p) < 0xffff0000) #endif