diff options
| author | Mike Pall <mike> | 2026-02-11 23:04:42 +0100 |
|---|---|---|
| committer | Mike Pall <mike> | 2026-02-11 23:04:42 +0100 |
| commit | d459c6ce503e880dc30aefb6b61aa7f2124c7a6e (patch) | |
| tree | fc640f1fd25d12bc92912876f96a0f7d3c3cbd2f /src/lj_record.c | |
| parent | 707c12bf00dafdfd3899b1a6c36435dbbf6c7022 (diff) | |
| download | luajit-d459c6ce503e880dc30aefb6b61aa7f2124c7a6e.tar.gz luajit-d459c6ce503e880dc30aefb6b61aa7f2124c7a6e.tar.bz2 luajit-d459c6ce503e880dc30aefb6b61aa7f2124c7a6e.zip | |
Prevent snapshot purge while recording a function header.
Thanks to Sergey Kaplun. #1425
Diffstat (limited to 'src/lj_record.c')
| -rw-r--r-- | src/lj_record.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_record.c b/src/lj_record.c index c203a0c7..1919ab03 100644 --- a/src/lj_record.c +++ b/src/lj_record.c | |||
| @@ -2276,7 +2276,7 @@ void lj_record_ins(jit_State *J) | |||
| 2276 | /* Need snapshot before recording next bytecode (e.g. after a store). */ | 2276 | /* Need snapshot before recording next bytecode (e.g. after a store). */ |
| 2277 | if (J->needsnap) { | 2277 | if (J->needsnap) { |
| 2278 | J->needsnap = 0; | 2278 | J->needsnap = 0; |
| 2279 | if (J->pt) lj_snap_purge(J); | 2279 | if (J->pt && bc_op(*J->pc) < BC_FUNCF) lj_snap_purge(J); |
| 2280 | lj_snap_add(J); | 2280 | lj_snap_add(J); |
| 2281 | J->mergesnap = 1; | 2281 | J->mergesnap = 1; |
| 2282 | } | 2282 | } |
