mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-12 17:24:09 +00:00
mcode should be assembled near the exit handler on Illumos.
This commit is contained in:
parent
892d370edd
commit
371df297af
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user