This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] malloc: Remove corrupt arena flag


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]