mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 15:14:08 +00:00
Merge branch 'master' into v2.1
This commit is contained in:
commit
59be97edb6
@ -363,7 +363,7 @@ void lj_mcode_limiterr(jit_State *J, size_t need)
|
|||||||
sizemcode = (size_t)J->param[JIT_P_sizemcode] << 10;
|
sizemcode = (size_t)J->param[JIT_P_sizemcode] << 10;
|
||||||
sizemcode = (sizemcode + LJ_PAGESIZE-1) & ~(size_t)(LJ_PAGESIZE - 1);
|
sizemcode = (sizemcode + LJ_PAGESIZE-1) & ~(size_t)(LJ_PAGESIZE - 1);
|
||||||
maxmcode = (size_t)J->param[JIT_P_maxmcode] << 10;
|
maxmcode = (size_t)J->param[JIT_P_maxmcode] << 10;
|
||||||
if ((size_t)need > sizemcode)
|
if (need * sizeof(MCode) > sizemcode)
|
||||||
lj_trace_err(J, LJ_TRERR_MCODEOV); /* Too long for any area. */
|
lj_trace_err(J, LJ_TRERR_MCODEOV); /* Too long for any area. */
|
||||||
if (J->szallmcarea + sizemcode > maxmcode)
|
if (J->szallmcarea + sizemcode > maxmcode)
|
||||||
lj_trace_err(J, LJ_TRERR_MCODEAL);
|
lj_trace_err(J, LJ_TRERR_MCODEAL);
|
||||||
|
Loading…
Reference in New Issue
Block a user