realloc behavior

Yoni Londner yoni at
Sun Jan 29 08:38:03 PST 2012


I just started using jemalloc, and one of our tests fail, because 
realloc with size=0
does malloc with size 1.

from realloc spec at :
If/size/is 0 and/ptr/is not a null pointer, the object pointed to is freed.

Why does jemalloc chooses to behave differently?


More information about the jemalloc-discuss mailing list