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: stack tops aligned on 2 MiB, and stacks given back (issue #137)

A stack's mapping is 2 MiB longer, and its top aligned on 2 MiB (one
page table's span with 4 KiB pages), so the regions at its top belong to
it alone. Stack::release gives the memory back with MADV_DONTNEED; when
the advised range covers a page table's whole span, Linux
(CONFIG_PT_RECLAIM) frees the page table too: 10,000 stacks with one
touched page each went from 42.5 MB of page tables to 2.5 MB, against
none freed when only the touched page was advised.

Coroutine::hibernate saves a suspended fiber's stack (a Snapshot, as
multi-shot resumptions do) and releases it; Coroutine::restore writes it
back in place. Not available with corosensei (no snapshots).

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

olivier · il y a 1 mois · c04029deca3d7af11c11ff38e927c3d9410c9426

Parents 73ac78e

1 fichiers modifiés, 98 ajouts, 5 suppressions