Open silenus-dionysus opened 5 years ago
Depending on if/when the JIT goes in this might need to interact with the LLVM system.
This should be a separate module that ties into interpret.c and runs on a separate thread which is initialized when the interpreter is. The main problem is identifying the root set. Perhaps I need to grep for or write a static analyzer in clang to find an approximation of paths where svalue_t is stored and used.
Most modern VM systems handle memory management using a garbage collector. FluffOS being an older system relies on a rather verbose reference counting system. This system should be removed and replaced with a concurrent garbage collector of some type.