
louise
Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.
Dernier runRéussi#1205 · main · 10 min 08 s
1Étoiles
0Forks
0Issues
Compiler: every extern outside the runtime may unwind; qsort_r tests (issue #48)
The C backend now checks ctx->yielding after every extern whose symbol is not the runtime's (prefix tl_), not only after blocking ones. A callback's panic thus continues once C returns, and a shim may panic itself (tl_panic_str). The callbacks fixture sorts with libc qsort_r and tilcayo comparators (captures, nesting, a blocking extern inline, a long sort, a panicking comparator), on 1 and 4 threads, with the leak oracle; CI also runs it under ASan and UBSan. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Parents 51a9ed3
10 fichiers modifiés, 203 ajouts, 19 suppressions
crates/tilc/tests/ffi.rs+73−0crates/tilc/tests/fixtures/callbacks/c/sort.c+63−0crates/tilc/tests/fixtures/callbacks/src/main.til+43−0crates/tilc/tests/fixtures/callbacks/tilcayo.toml+7−0crates/tilc_codegen_c/src/emit.rs+5−1crates/tilc_hir/src/externs.rs+1−13crates/tilc_hir/src/lib.rs+1−1docs/adr/0015-c-callbacks-and-bindings.md+5−3docs/runtime-abi.md+2−1scripts/ci.sh+3−0