[PATCH v2 02/28] malloc: Remove unused tcache_set_inactive
H.J. Lu
hjl.tools@gmail.com
Tue Oct 28 20:29:29 GMT 2025
On Wed, Oct 29, 2025 at 1:11 AM Adhemerval Zanella
<adhemerval.zanella@linaro.org> wrote:
>
> clang warns that this function is not used.
> ---
> malloc/malloc.c | 7 -------
> 1 file changed, 7 deletions(-)
>
> diff --git a/malloc/malloc.c b/malloc/malloc.c
> index 1cdeb08437..0b21bdf1bd 100644
> --- a/malloc/malloc.c
> +++ b/malloc/malloc.c
> @@ -3141,13 +3141,6 @@ tcache_enabled (void)
> return (! tcache_inactive () && ! tcache_disabled ());
> }
>
> -/* Sets the tcache to INACTIVE state. */
> -static __always_inline void
> -tcache_set_inactive (void)
> -{
> - tcache = (tcache_perthread_struct *) &__tcache_dummy.inactive;
> -}
> -
> /* Sets the tcache to DISABLED state. */
> static __always_inline void
> tcache_set_disabled (void)
> --
> 2.43.0
>
LGTM.
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
Thanks.
--
H.J.
More information about the Libc-alpha
mailing list