SGen has very few dependencies on the rest of the Mono code, so itβs easy to extract and adapt to other applications. The main difference from the Boehm collector is that it currently does not support inaccurate mode for heap objects, so you cannot use it to simply replace malloc. However, it would work just fine to manage the objects for which you could provide accurate reference information.
lupus source
share