Re:Doom 3 source released
by klodolph on Tuesday November 22, 2011 @09:19PM
(#3268467)
I don't know which Quake 2 you are looking at. Do a code search for Z_TagMalloc and Hunk_Alloc.
[ Parent
| on HN ]
Re:Doom 3 source released
by gurkendoktor on Wednesday November 23, 2011 @07:04AM
(#3269765)
To quote the review (which I've read more than the source):
The Zone Memory Allocator(common.c: Z_Malloc, Z_Free,
Z_TagMalloc , Z_FreeTags) is still here in Quake2 but
it is pretty much useless:
Tagging is never used and allocation/deallocation is
build on top of malloc and free (I have no idea why id
software decided to trust the C Standard Library at this
point).
The overflow detector (using the Z_MAGIC contant) is
never used either.
So, unless I totally misunderstand things, it is half C stdlib, half Hunk allocator?