mun icon indicating copy to clipboard operation
mun copied to clipboard

Make GC API more generic

Open playXE opened this issue 5 years ago • 2 comments

Currently Mun uses just type GarbageCollector = MarkSweep. It will be better to have trait GarbageCollector and implement it for GC impls.

playXE avatar May 27 '20 02:05 playXE

It is important to have generic API if we want multiple GCs support in runtime, this also might help interfacing with LLVM GC API it is possible to pass all data (roots,stack maps etc) from LLVM to GarbageCollector trait and each impl of GC can use this data.

playXE avatar May 27 '20 02:05 playXE

I assume you want to type the Runtime on a particular impl of GcRuntime + MemoryMapper? I think that's a great idea. One thing to keep in mind is how we expose that to the c api since we can't use a generic there.

baszalmstra avatar May 27 '20 07:05 baszalmstra