mirror of
https://github.com/love2d/megasource.git
synced 2026-08-19 04:05:09 +02:00
Update LuaJIT to commit 72efc42
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include "lj_trace.h"
|
||||
#include "lj_dispatch.h"
|
||||
#include "lj_vm.h"
|
||||
#include "lj_vmevent.h"
|
||||
|
||||
#define GCSTEPSIZE 1024u
|
||||
#define GCSWEEPMAX 40
|
||||
@@ -521,8 +522,13 @@ static void gc_call_finalizer(global_State *g, lua_State *L,
|
||||
hook_restore(g, oldh);
|
||||
if (LJ_HASPROFILE && (oldh & HOOK_PROFILE)) lj_dispatch_update(g);
|
||||
g->gc.threshold = oldt; /* Restore GC threshold. */
|
||||
if (errcode)
|
||||
lj_err_throw(L, errcode); /* Propagate errors. */
|
||||
if (errcode) {
|
||||
ptrdiff_t errobj = savestack(L, L->top-1); /* Stack may be resized. */
|
||||
lj_vmevent_send(L, ERRFIN,
|
||||
copyTV(L, L->top++, restorestack(L, errobj));
|
||||
);
|
||||
L->top--;
|
||||
}
|
||||
}
|
||||
|
||||
/* Finalize one userdata or cdata object from the mmudata list. */
|
||||
|
||||
Reference in New Issue
Block a user