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: count live blocks per thread (issue #35)

The leak oracle kept one global atomic counter, so every block
allocation and free was an atomic read-modify-write on a shared cache
line: 21-27% of the cycles of the allocation-heavy benchmarks on one
thread, more than the allocator itself. Each thread now counts its own
blocks with a plain load and store, and tl_stats_live_blocks sums the
counts; a block freed on another thread makes one count go down, so the
sum stays exact once the threads are idle, as at exit.

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

olivier · il y a 1 mois · d413b915c154570ab1239b1c52d74a75cdb842a8

Parents f6d81d9

2 fichiers modifiés, 61 ajouts, 4 suppressions