Commit graph

2 commits

Author SHA1 Message Date
Shannon Booth
aa0eb13a89 LibGC: Treat GC::Ref and GC::Ptr as rootable values
Allow root containers to gather GC::Ref<T> and GC::Ptr<T> by treating
their stored pointer as a Cell pointer.

This avoids requiring T to be complete when rooting containers such as
RootVector<GC::Ref<T>>.
2026-05-23 18:26:12 +02:00
Shannon Booth
47bd8388c5 LibGC: Share root container value gathering
Add a small helper for turning root container values into Cell pointers,
and use it from RootVector, RootHashTable, and RootHashMap.
2026-05-23 18:26:12 +02:00