diff options
author | Mike Pall <mike> | 2021-03-23 00:35:46 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2021-03-23 00:39:50 +0100 |
commit | a32aeadc6878305658fb3939830e6abaef587e40 (patch) | |
tree | 48f3df3a4ca72b1fb7cd628f15b9d21d864bbbc2 /src/lj_trace.h | |
parent | ddd0fd8f3754ad83423623655d8b3f8454a7cf1e (diff) | |
download | luajit-a32aeadc6878305658fb3939830e6abaef587e40.tar.gz luajit-a32aeadc6878305658fb3939830e6abaef587e40.tar.bz2 luajit-a32aeadc6878305658fb3939830e6abaef587e40.zip |
Handle on-trace OOM errors from helper functions.
Diffstat (limited to 'src/lj_trace.h')
-rw-r--r-- | src/lj_trace.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lj_trace.h b/src/lj_trace.h index 7e86d963..e4cf2dc4 100644 --- a/src/lj_trace.h +++ b/src/lj_trace.h | |||
@@ -37,6 +37,9 @@ LJ_FUNC void lj_trace_ins(jit_State *J, const BCIns *pc); | |||
37 | LJ_FUNCA void LJ_FASTCALL lj_trace_hot(jit_State *J, const BCIns *pc); | 37 | LJ_FUNCA void LJ_FASTCALL lj_trace_hot(jit_State *J, const BCIns *pc); |
38 | LJ_FUNCA void LJ_FASTCALL lj_trace_stitch(jit_State *J, const BCIns *pc); | 38 | LJ_FUNCA void LJ_FASTCALL lj_trace_stitch(jit_State *J, const BCIns *pc); |
39 | LJ_FUNCA int LJ_FASTCALL lj_trace_exit(jit_State *J, void *exptr); | 39 | LJ_FUNCA int LJ_FASTCALL lj_trace_exit(jit_State *J, void *exptr); |
40 | #if LJ_UNWIND_EXT | ||
41 | LJ_FUNC uintptr_t LJ_FASTCALL lj_trace_unwind(jit_State *J, uintptr_t addr, ExitNo *ep); | ||
42 | #endif | ||
40 | 43 | ||
41 | /* Signal asynchronous abort of trace or end of trace. */ | 44 | /* Signal asynchronous abort of trace or end of trace. */ |
42 | #define lj_trace_abort(g) (G2J(g)->state &= ~LJ_TRACE_ACTIVE) | 45 | #define lj_trace_abort(g) (G2J(g)->state &= ~LJ_TRACE_ACTIVE) |