Expand description
Simple mark&sweep garbage collector that can work in multiple threads (multithreaded collection support is still W.I.P).
Internally this GC implementation uses mimalloc as fast memory allocator. Marking is done in sync or in parallel. Parallel marking is usually slower,but the idea is that the longer you wait before doing GC work, the more time it will take to do it once you get around to it. So if you do a bit of the work regularly, you are less likely to experience stop-the-world pauses.
Modules§
Structs§
- AllNumbers
- Collector
- Gc
- A garbage-collected pointer type
- GcPtr
- Rooted
- An structure to hold root object alive until end of it’s live. Internally this structure uses reference counting.
- Terminator
- Timer
Traits§
Functions§
- add_
root - disable_
gc_ stats - disable_
incremental - enable_
gc_ stats - enable_
incremental - gc_
collect - gc_
mark_ parallel - Trigger parallel marking to mark objects.
- gc_
summary - gc_
total_ allocated - in_ms
- is_root
- remove_
root - timestamp