[fpc-devel] cmem Size Field
Ewald
bloody.middlefinger at yellowcouch.org
Thu Oct 18 20:10:36 CEST 2012
Hello,
In the cmem unit I see that there is always some extra room allocated
where the size in bytes of the requested memory block is stored. Also I
noticted that this size is never really used.
While I do see the point of the field (e.g. checking for right size
parameter in FreeMemSize or some other debugging functionality), I do
not see why this extra memory is needed always since the calls in the C
library (malloc, free, realloc, calloc) do not need this kind of
information.
Am I missing something here is this a bit of left-over code?
--
Ewald
More information about the fpc-devel
mailing list