You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A cycle that runs through an array of objects stored as a Manticore\Ds\Map value is not collected by gc_collect_cycles(). #124
area:runtimeRuntime: shutdown, traces, collectorbugSomething isn't workingleakMemory that php releases and the native binary does notneeds-designNeeds a design/epic, not a local fix
Known-bug repro: tests/aot/repro/leak/cc_map_value_array_cycle_not_collected.php — bash tests/aot/xfail.sh -k cc_map_value_array_cycle_not_collected reports XFAIL while this is open and XPASS once it is fixed; then move the repro into tests/aot/cases/ and close this issue.
Scope: collector extension. The cycle collector walks only object properties, never array buffers. A plain $a->kids = [$a] cycle leaks the same way (confirmed with a probe), so the Map-value case is one instance. Fix: teach the collector to walk array buffers (elements are cells/objects by element repr hint), including Ds Map value arrays. Found in batch E; skipped. Repro: tests/aot/repro/leak/cc_map_value_array_cycle_not_collected.php.
area:runtimeRuntime: shutdown, traces, collectorbugSomething isn't workingleakMemory that php releases and the native binary does notneeds-designNeeds a design/epic, not a local fix
Activity
blacktrs commentedon Oct 13, 2026
Scope: collector extension. The cycle collector walks only object properties, never array buffers. A plain
$a->kids = [$a]cycle leaks the same way (confirmed with a probe), so the Map-value case is one instance. Fix: teach the collector to walk array buffers (elements are cells/objects by element repr hint), including Ds Map value arrays. Found in batch E; skipped. Repro:tests/aot/repro/leak/cc_map_value_array_cycle_not_collected.php.