summaryrefslogtreecommitdiff
path: root/src/lj_trace.h
diff options
context:
space:
mode:
authorMike Pall <mike>2021-03-23 00:35:46 +0100
committerMike Pall <mike>2021-03-23 00:39:50 +0100
commita32aeadc6878305658fb3939830e6abaef587e40 (patch)
tree48f3df3a4ca72b1fb7cd628f15b9d21d864bbbc2 /src/lj_trace.h
parentddd0fd8f3754ad83423623655d8b3f8454a7cf1e (diff)
downloadluajit-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.h3
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);
37LJ_FUNCA void LJ_FASTCALL lj_trace_hot(jit_State *J, const BCIns *pc); 37LJ_FUNCA void LJ_FASTCALL lj_trace_hot(jit_State *J, const BCIns *pc);
38LJ_FUNCA void LJ_FASTCALL lj_trace_stitch(jit_State *J, const BCIns *pc); 38LJ_FUNCA void LJ_FASTCALL lj_trace_stitch(jit_State *J, const BCIns *pc);
39LJ_FUNCA int LJ_FASTCALL lj_trace_exit(jit_State *J, void *exptr); 39LJ_FUNCA int LJ_FASTCALL lj_trace_exit(jit_State *J, void *exptr);
40#if LJ_UNWIND_EXT
41LJ_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)