mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-27 11:07:33 +03:00
Move tsd link and in_hook after tcache.
This can lead to better cache utilization down the common paths where we don't touch the link.
This commit is contained in:
parent
50820010fe
commit
d1e11d48d4
4 changed files with 17 additions and 15 deletions
|
|
@ -6,6 +6,10 @@
|
|||
#include "jemalloc/internal/cache_bin.h"
|
||||
#include "jemalloc/internal/ticker.h"
|
||||
|
||||
/* Various uses of this struct need it to be a named type. */
|
||||
typedef struct tsd_s tsd_t;
|
||||
typedef ql_elm(tsd_t) tsd_link_t;
|
||||
|
||||
struct tcache_s {
|
||||
/*
|
||||
* To minimize our cache-footprint, we put the frequently accessed data
|
||||
|
|
@ -29,6 +33,11 @@ struct tcache_s {
|
|||
*/
|
||||
/* Lets us track all the tcaches in an arena. */
|
||||
ql_elm(tcache_t) link;
|
||||
|
||||
/* Logically scoped to tsd, but put here for cache layout reasons. */
|
||||
ql_elm(tsd_t) tsd_link;
|
||||
bool in_hook;
|
||||
|
||||
/*
|
||||
* The descriptor lets the arena find our cache bins without seeing the
|
||||
* tcache definition. This enables arenas to aggregate stats across
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue