mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 14:41:42 +03:00
Rearrange the bools in prof_tdata_t to save some bytes.
This lowered the sizeof(prof_tdata_t) from 200 to 192 which is a round size class. Afterwards the tdata_t size remain unchanged with the last commit, which effectively inlined the storage of thread names for free.
This commit is contained in:
parent
ce0b7ab6c8
commit
e62aa478c7
1 changed files with 3 additions and 3 deletions
|
|
@ -156,9 +156,6 @@ struct prof_tdata_s {
|
|||
*/
|
||||
uint64_t thr_discrim;
|
||||
|
||||
bool attached;
|
||||
bool expired;
|
||||
|
||||
rb_node(prof_tdata_t) tdata_link;
|
||||
|
||||
/*
|
||||
|
|
@ -198,6 +195,9 @@ struct prof_tdata_s {
|
|||
*/
|
||||
bool active;
|
||||
|
||||
bool attached;
|
||||
bool expired;
|
||||
|
||||
/* Temporary storage for summation during dump. */
|
||||
prof_cnt_t cnt_summed;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue