From: Archie Cobbs (archie@whistle.com)
Date: Fri Dec 18 1998 - 16:13:35 EST
Godmar Back writes:
> > - add an assert(size != 0) in gcMalloc().
>
> Yes, I think that's a good course of action.
> I also added an assert if someone attempt to free non-fixed objects.
It's not clear to me why trying to allocate zero bytes is a bug.
Why not just return NULL in this case?
> We need to stop to silently ignore things that don't hurt immediately
> unless we really understand them.
The more assert's the better! :-)
-Archie
___________________________________________________________________________
Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com
This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:57:23 EDT