opencode/packages/codemode-rust/crates/psychoscript
Sebastian Herrlinger 60b0ffaa17 feat(codemode): add a generational sticky-mark-bit collector behind gc-sticky
A non-moving collector for long-lived psychoscript runs: objects, closure cells and strings are marked from the snapshot roots at the run's existing stops, freed slots go on free lists, and a minor collection sweeps only what was allocated since the last one, with a write barrier on Heap's IndexMut and on cell stores filling the remembered set. A major collection runs when the old generation doubles. With the feature off, the heap stays a Vec and instruction counts match the base.
2026-11-19 13:53:56 +01:00
..
examples feat(codemode): keep unpaired surrogates in namespace paths, error names, RegExp sources, bindings, metadata and durable data 2026-11-19 03:11:19 +01:00
src feat(codemode): add a generational sticky-mark-bit collector behind gc-sticky 2026-11-19 13:53:56 +01:00
tests feat(codemode): move long stretches of a run's compute to a worker thread, keeping host code on the executor 2026-11-19 03:32:56 +01:00
Cargo.toml feat(codemode): add a generational sticky-mark-bit collector behind gc-sticky 2026-11-19 13:53:56 +01:00