Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
This one is one of the most famous. But for small projects it may seem a bit heavy. If the GC is needed only for a simple auxiliary module (for example, I needed it for a simple scripting engine), it's easier to write your own implementation of mark-sweep, it will fit in a hundred or two lines of code. An example is, say, the GC in the K virtual machine.
To be honest, I don't know if such systems exist, but in my opinion there is nothing easier than using smart pointers and standard library containers for this purpose.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question