[PATCH] malloc: Remove corrupt arena flag

Carlos O'Donell carlos@redhat.com
Wed Aug 30 16:31:00 GMT 2017


On 08/30/2017 11:04 AM, Florian Weimer wrote:
> This is no longer needed because we now abort immediately
> once heap corruption is detected.
> 
> 2017-08-30  Florian Weimer  <fweimer@redhat.com>
> 
> 	* malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
> 	(set_arena_corrupt): Remove definitions.
> 	(mtrim): Do not check for corrupt arena.
> 	* malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
> 	Likewise.
Thanks for getting to the point where we can remove this.

Less code in the allocator is always better.

Patch looks good to me.

-- 
Cheers,
Carlos.



More information about the Libc-alpha mailing list