mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-03 10:37:52 +03:00
Force inline ifree to avoid function call costs on fast path.
Without ALWAYS_INLINE, sometimes ifree() gets compiled into its own function, which adds overhead on the fast path.
This commit is contained in:
parent
5d33233a5e
commit
e6b074472e
1 changed files with 2 additions and 2 deletions
|
|
@ -1997,7 +1997,7 @@ irealloc_prof(tsd_t *tsd, void *old_ptr, size_t old_usize, size_t usize) {
|
|||
return p;
|
||||
}
|
||||
|
||||
JEMALLOC_INLINE_C void
|
||||
JEMALLOC_ALWAYS_INLINE_C void
|
||||
ifree(tsd_t *tsd, void *ptr, tcache_t *tcache, bool slow_path) {
|
||||
witness_assert_lockless(tsd_tsdn(tsd));
|
||||
|
||||
|
|
@ -2022,7 +2022,7 @@ ifree(tsd_t *tsd, void *ptr, tcache_t *tcache, bool slow_path) {
|
|||
}
|
||||
}
|
||||
|
||||
JEMALLOC_INLINE_C void
|
||||
JEMALLOC_ALWAYS_INLINE_C void
|
||||
isfree(tsd_t *tsd, void *ptr, size_t usize, tcache_t *tcache, bool slow_path) {
|
||||
witness_assert_lockless(tsd_tsdn(tsd));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue