[PATCH v2 02/28] malloc: Remove unused tcache_set_inactive

Adhemerval Zanella adhemerval.zanella@linaro.org
Tue Oct 28 17:08:11 GMT 2025


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



More information about the Libc-alpha mailing list