[PATCH v4 6/7] malloc: force inline of _int_free
Cupertino Miranda
cupertino.miranda@oracle.com
Fri Mar 14 17:29:25 GMT 2025
Change _int_free declaration to us __always_inline instead of the
optinal inline keyword.
---
malloc/malloc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/malloc/malloc.c b/malloc/malloc.c
index 305b2bc39a..c031ca0071 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -4728,7 +4728,7 @@ _int_free_chunk (mstate av, mchunkptr p, INTERNAL_SIZE_T size, int have_lock)
P has already been locked. It will perform sanity check, then try the
fast path to free into tcache. If the attempt not success, free the
chunk to arena. */
-static inline void
+static __always_inline void
_int_free (mstate av, mchunkptr p, int have_lock)
{
INTERNAL_SIZE_T size; /* its size */
--
2.39.5
More information about the Libc-alpha
mailing list