[RFC] Simple checking allocator

Ondřej Bílka neleai@seznam.cz
Wed Nov 13 10:01:00 GMT 2013


On Wed, Nov 13, 2013 at 10:28:09AM +0100, Petr Machata wrote:
> Ondřej Bílka <neleai@seznam.cz> writes:
> 
> > On Wed, Oct 23, 2013 at 02:05:45AM -0700, Andi Kleen wrote:
> >> Ondřej Bílka <neleai@seznam.cz> writes:
> >> >
> >> > Comments?
> >> 
> >> Better to just rely on valgrind or AddressSanitizer? Those 
> >> will be always better for this.
> >> 
> > Could if you accept a slowdown. 
> 
> Doesn't ElectrictFence do pretty much the same thing without slowdown.
> 
No unless you have a program with only a few allocations.

It uses a mmap for each 16 byte allocation which is quite slow and
memory overhead of it is huge.



More information about the Libc-alpha mailing list