tobogganSe connecter

louise

Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.

M5 (part 2): native unwinding — panics and final ctl

- Codegen tracks the references each frame holds (as tilc_perceus::verify
  does). After each call that may unwind, it checks ctx->yielding; when
  set, it drops exactly those references and returns. musttail calls need
  no check.
- final ctl: the handler capability stores its marker. The operation
  yields (op index, args) to it, and the handler catches the payload and
  calls the clause. Regions end on the unwind path too.
- Exit signals at the entry preemption point unwind the same way.
- tilrt: tl_main_program reports a root panic like `tilc run` (exit 101);
  the temporary fatal-panic mode is removed.
- ADR 0003 Revision 2 (proposed): in C, zero-overhead table-driven
  unwinding conflicts with musttail, so the C backend keeps yield checks.
- New run test (unwinding.til): final ctl through 100 frames holding
  lists, nested handlers, a region. It runs natively with 0 leaks, and
  panics now leak nothing either.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

olivier · il y a 1 mois · d15b7d080ba9587c05b62f760f42892bba131e05

Parents 26860ce

13 fichiers modifiés, 348 ajouts, 111 suppressions