Skip to content

refactor: thread caller allocator into worker arenas#369

Merged
indaco merged 1 commit into
mainfrom
refactor/worker-arena-allocators
May 21, 2026
Merged

refactor: thread caller allocator into worker arenas#369
indaco merged 1 commit into
mainfrom
refactor/worker-arena-allocators

Conversation

@indaco
Copy link
Copy Markdown
Owner

@indaco indaco commented May 21, 2026

Description

Threads a caller-chosen allocator into the parallel worker arenas across install, migrate --parallel, outdated, and search. Production picks smp_allocator (thread-safe, skips the 4 KiB rounding page_allocator paid for every KB-scale formula JSON or temp-path string); tests can now drive the same workers under testing.allocator, so leak detection finally reaches across the worker boundary. No worker invariant changed - each worker still owns its arena.

Related Issue

  • None

Notes for Reviewers

  • None

Each parallel worker arena now sources its backing from the caller
instead of pinning `page_allocator`. Production picks
`smp_allocator` (thread-safe, no 4 KiB rounding); tests can drive
the same workers under `testing.allocator` so leak coverage now
extends across the worker boundary.
@indaco indaco merged commit c2ed157 into main May 21, 2026
3 checks passed
@indaco indaco deleted the refactor/worker-arena-allocators branch May 21, 2026 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant