From 371df297afabfacbc4e2ded7d5bf17d953dc15e0 Mon Sep 17 00:00:00 2001 From: Theo Schlossnagle Date: Mon, 27 Feb 2017 16:08:52 +0000 Subject: [PATCH] mcode should be assembled near the exit handler on Illumos. --- src/lj_mcode.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lj_mcode.c b/src/lj_mcode.c index b363136d..6a83a998 100644 --- a/src/lj_mcode.c +++ b/src/lj_mcode.c @@ -204,7 +204,9 @@ static void mcode_protect(jit_State *J, int prot) /* -- MCode area allocation ----------------------------------------------- */ -#if LJ_TARGET_X64 +#if LJ_TARGET_X64 && defined(__sun__) +#define mcode_validptr(p) (p) +#elif LJ_TARGET_X64 #define mcode_validptr(p) ((p) && (uintptr_t)(p) < (uintptr_t)1<<47) #else #define mcode_validptr(p) ((p) && (uintptr_t)(p) < 0xffff0000)