Re:A tiny Unix dynamic memory allocator library
by userbinator on Saturday September 23, 2017 @01:12AM
(#15318256)
It uses calloc() which then uses... the system library's malloc(). I'm not sure what utility this has --- all it does is add some headers and footers to the allocated block in an attempt to catch overflow writes, but practically all existing malloc()s do that already.
[ Parent
| on HN ]
Re:A tiny Unix dynamic memory allocator library
by hawkinsw on Saturday September 23, 2017 @01:40AM
(#15318341)
I wondered the same thing! If the goal is to add "debuggability", then there are other options out there too -- dmalloc and electric fence, to name just two.
I went to the repo fully expecting to see a call to brk() somewhere in the code.
Will