Browse Source

Remove unnecessary mcode alloc pointer check.

Also fixes Illumos address space issue reported by Theo Schlossnagle.
Mike Pall 8 years ago
parent
commit
f50bf7585a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/lj_mcode.c

+ 2 - 2
src/lj_mcode.c

@@ -204,8 +204,8 @@ static void mcode_protect(jit_State *J, int prot)
 
 
 /* -- MCode area allocation ----------------------------------------------- */
 /* -- 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
 #else
 #define mcode_validptr(p)	((p) && (uintptr_t)(p) < 0xffff0000)
 #define mcode_validptr(p)	((p) && (uintptr_t)(p) < 0xffff0000)
 #endif
 #endif