diff mbox series

[v4,6/7] malloc: force inline of _int_free

Message ID 20250314172926.51599-7-cupertino.miranda@oracle.com
State New
Headers show
Series malloc: tcache improvements | expand

Commit Message

Cupertino Miranda March 14, 2025, 5:29 p.m. UTC
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 mbox series

Patch

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 */