diff options
author | Mike Pall <mike> | 2017-03-08 23:02:24 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2017-03-08 23:02:24 +0100 |
commit | f50bf7585a32738c4fb719cb8fc59d02231fc8c3 (patch) | |
tree | 4df9c99a25e1f5bb16c021c79924309fb014ecf6 /src | |
parent | d62459fc3949baca5ee1c1919feb4f4979bb09c6 (diff) | |
download | luajit-f50bf7585a32738c4fb719cb8fc59d02231fc8c3.tar.gz luajit-f50bf7585a32738c4fb719cb8fc59d02231fc8c3.tar.bz2 luajit-f50bf7585a32738c4fb719cb8fc59d02231fc8c3.zip |
Remove unnecessary mcode alloc pointer check.
Also fixes Illumos address space issue reported by Theo Schlossnagle.
Diffstat (limited to 'src')
-rw-r--r-- | src/lj_mcode.c | 4 |
1 files 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) | |||
204 | 204 | ||
205 | /* -- MCode area allocation ----------------------------------------------- */ | 205 | /* -- MCode area allocation ----------------------------------------------- */ |
206 | 206 | ||
207 | #if LJ_TARGET_X64 | 207 | #if LJ_64 |
208 | #define mcode_validptr(p) ((p) && (uintptr_t)(p) < (uintptr_t)1<<47) | 208 | #define mcode_validptr(p) (p) |
209 | #else | 209 | #else |
210 | #define mcode_validptr(p) ((p) && (uintptr_t)(p) < 0xffff0000) | 210 | #define mcode_validptr(p) ((p) && (uintptr_t)(p) < 0xffff0000) |
211 | #endif | 211 | #endif |