3 ms·
A free()-d object that is NOT garbage-collected during the next collection is a bug in itself.
by cyberax 1y ago
A free()-d object that is NOT garbage-collected during the next collection is a bug in itself.
- thomasmg 1y agoI'm not sure what you mean. Do you mean there is a bug _in the garbage collection algorithm_, if the object is not freed in the very next garbage collection cycle? Well, it depends: the garbage collection could defers collection of some objects until memory is low. Multi-generation garbage collection algorithm often do this.
- cyberax 1y agoYou can defer the actual freeing of the object until at least one GC pass finishes. Then alert if any of them are still reachable.
- pizlonator 1y agoThe Fil-C GC will only GC a free'd object if it succeeds at repointing all capabilities to it to point at the free singleton instead. Don't worry, it's totally sound.