tobogganSe connecter

louise

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

Runtime: a larger stack pool, and no unmapping at exit (issue #137)

Unmapping stacks one by one took 40-43% of tests/bench/idle.lse's cycles
(ADR 0028): as each actor unwound at exit, its stack was unmapped, in a
tree of 200,000 mappings, since the pool kept 256.

- The pool keeps up to 16,384 finished stacks. Beyond the first 256,
  which stay as they are for actors replaced at once, a pooled stack is
  released (Stack::release), so it costs no memory or page tables, only
  its two mappings and its address space.
- In a compiled program, once the root exited (stop_all), finished stacks
  and the pool are not unmapped: the process exits next and frees every
  mapping at once. Unwinding and defers still run; the leak oracle still
  reads 0, and the pool's list is freed (LeakSanitizer).

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

olivier · il y a 1 mois · 21dfd49457c80b3b2a54f4872b47bd09425c276d

Parents faff8f4

1 fichiers modifiés, 31 ajouts, 5 suppressions