3 ms·
For such a simple proof-of-concept this is good enough. Indeed, it's not going to break anything, just leak memory. If I recall correctly, more advanced C garba
by koenigdavidmj 12y ago
For such a simple proof-of-concept this is good enough. Indeed, it's not going to break anything, just leak memory. If I recall correctly, more advanced C garbage collectors like Boehm's have some ability to describe the layout of a struct to indicate that certain items are pointers and others are just data.
- MaulingMonkey 12y agoIf you're constrained on memory (either address space or the limits of your physical + paging memory spaces) this is going to break everything. This is not a common situation for everyone, but it's a common situation for me.
- webkike 12y agoDo you think this is appropriate to cover in a learning exercise that is intended to be simple?
- MaulingMonkey 12y agoI think it's appropriate to cover in a discussion about the merits - and limitations - of a proof of concept. I believe it's an appropriate counterpoint to "it's not going to break anything" as the discussion opens up to GCs in general, although that quote was likely meant only in the context of the proof of concept.
- koenigdavidmj 12y agoIn most such environments, stop-the-world is just as problematic.