LibGC: Add GC::RootHashMap<...> template container

This is a GC-aware wrapper around AK::HashMap. Entry values are treated
as GC roots, much like the GC::RootVector we already had.

We also provide GC::OrderedRootHashMap as a convenience.
This commit is contained in:
Andreas Kling 2025-05-03 11:59:17 +02:00 committed by Andreas Kling
commit 11ece7de10
Notes: github-actions[bot] 2025-05-03 15:34:58 +00:00
6 changed files with 122 additions and 0 deletions

View file

@ -15,6 +15,7 @@ struct HeapRoot {
HeapFunctionCapturedPointer,
Root,
RootVector,
RootHashMap,
ConservativeVector,
RegisterPointer,
StackPointer,