[Gc] Re: suspicion in GC_free about BZERO((word *)p + 1, WORDS_TO_BYTES(sz-1))

Alexander Petrossian (PAF) Alexander.Petrossian at teligent.ru
Wed Dec 12 09:25:43 PST 2007


Alexander Petrossian (PAF) @ Wednesday, December 12, 2007 8:09:36 PM (Moscow time):
APP>             BZERO((word *)p + 1, WORDS_TO_BYTES(sz-1));
APP> I don't feel right about this +-1 thing. 

It's perfectly valid, Alexander:

we use first word for a freelist chain, check few lines below that:

obj_link(p) = *flh;

-- 
Alexander Petrossian (PAF), Software Developer, Teligent Russia



More information about the Gc mailing list