[PATCH] malloc: Hoist common unlock out of if-else control block

DJ Delorie dj@redhat.com
Mon Sep 15 16:57:31 GMT 2025


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>

Do you need someone to commit this for you?



More information about the Libc-alpha mailing list