2 ms·
Doesn't this break things like Valgrind?
by mtlmtlmtlmtl 4y ago
Doesn't this break things like Valgrind?
- asveikau 4y agoFirstly, an xmalloc will call malloc and add error checks. So malloc is still called. But more fundamentally, Valgrind hooks into the allocator (and the program at large) much more deeply. You could write your own allocator (many people deploy something other than libc's) and it would still figure it out.