3 ms·
It says in "Zero" that there is no garbage collector, does that mean you can't use any reference-type objects at all? Or does that mean that reference-type obj
by Dwedit 4y ago
It says in "Zero" that there is no garbage collector, does that mean you can't use any reference-type objects at all? Or does that mean that reference-type objects stay allocated forever?
- olvy0 4y agoI think it means that reference type objects stay allocated forever, but I'm not sure. From [0]: If an API allocates as part of its operation and doesn't return that as result, it's not good. We don't have a GC. This is all memory leaks. [0] https://github.com/bflattened/bflat/tree/master/src/zerolib https://github.com/bflattened/bflat/tree/master/src/zerolib
- MarkSweep 4y agoIt uses malloc in place of the GC’s allocator, so objects stay allocated forever: https://github.com/bflattened/bflat/blob/master/src/zerolib/Internal/Stubs.cs#L134 https://github.com/bflattened/bflat/blob/master/src/zerolib/...