GC Sentinel

bearophile bearophileHUGS at lycos.com
Wed Oct 28 00:52:13 PDT 2009


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 you need to compile Phobos again to do that? If that's true then handier (compile-time?) solutions can be found.

Bye,
bearophile



More information about the Digitalmars-d mailing list