[PATCH] malloc: Hoist common unlock out of if-else control block
Dev Jain
dev.jain@arm.com
Thu Sep 18 06:50:59 GMT 2025
On 15/09/25 10:27 pm, DJ Delorie wrote:
> Dev Jain <dev.jain@arm.com> writes:
>> We currently unlock the arena mutex in arena_get_retry() unconditionally.
>> Therefore, hoist out the unlock from the if-else control block.
> LGTM although I'm surprised gcc doesn't just do this for us.
> Reviewed-by: DJ Delorie <dj@redhat.com>
Thanks!
>
> Do you need someone to commit this for you?
I'm not aware of the process followed on glibc regarding this :)
>
More information about the Libc-alpha
mailing list