Add _jit_warned check to prevent parse-loop infinite recompilation

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-29 22:38:54 +00:00
parent 07f5d03ac1
commit 702074eaa9

View File

@@ -729,6 +729,7 @@ let register_jit_hook env =
| None ->
let fn_name = match l.l_name with Some n -> n | None -> "?" in
if !_jit_compiling then None
else if Hashtbl.mem _jit_warned fn_name then None
else begin
_jit_compiling := true;
let t0 = Unix.gettimeofday () in