mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Remove unnecessary mcode alloc pointer check.
Also fixes Illumos address space issue reported by Theo Schlossnagle.
This commit is contained in:
parent
d62459fc39
commit
f50bf7585a
@ -204,8 +204,8 @@ static void mcode_protect(jit_State *J, int prot)
|
|||||||
|
|
||||||
/* -- MCode area allocation ----------------------------------------------- */
|
/* -- MCode area allocation ----------------------------------------------- */
|
||||||
|
|
||||||
#if LJ_TARGET_X64
|
#if LJ_64
|
||||||
#define mcode_validptr(p) ((p) && (uintptr_t)(p) < (uintptr_t)1<<47)
|
#define mcode_validptr(p) (p)
|
||||||
#else
|
#else
|
||||||
#define mcode_validptr(p) ((p) && (uintptr_t)(p) < 0xffff0000)
|
#define mcode_validptr(p) ((p) && (uintptr_t)(p) < 0xffff0000)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user