On Tue, 27 Oct 2009 19:41:24 -0400, dsimcha dsim...@yahoo.com wrote:
I'm looking at the GC implementation and starting my hacking. I noticed
that
the ends of blocks are already being used in some creative ways in the
sentinel version. This looks like a debugging feature, though I don't
Leandro Lucarella:
I think that's used to check for memory corruption, by storing a known
patter before and after the actual object. Then, each time you can, you
check that the unused memory block is intact (meaning nobody wrote to an
invalid memory area).
Such things can be quite useful. Do
bearophile, el 28 de octubre a las 03:52 me escribiste:
Leandro Lucarella:
I think that's used to check for memory corruption, by storing a known
patter before and after the actual object. Then, each time you can, you
check that the unused memory block is intact (meaning nobody wrote to
Leandro Lucarella:
If that's true then handier (compile-time?) solutions can be found.
What do you mean?
For example something run-time that doesn't work with a version(), like
something that can be added to the GC API. If this is seen as too much slow or
hard to do, then just the GC may
bearophile, el 28 de octubre a las 13:19 me escribiste:
Leandro Lucarella:
If that's true then handier (compile-time?) solutions can be found.
What do you mean?
For example something run-time that doesn't work with a version(), like
something that can be added to the GC API. If this