diff options
author | Qi Wang <interwq@gwu.edu> | 2023-03-28 20:09:41 -0700 |
---|---|---|
committer | Qi Wang <interwq@gmail.com> | 2023-04-05 10:03:12 -0700 |
commit | e62aa478c79865242363d3531fc58c4c7f65a1b4 (patch) | |
tree | be65815c9eb1bb21badff56095836894bc7cfa55 /include/jemalloc | |
parent | ce0b7ab6c8d7a3579d012c227013f5143d9bc8c6 (diff) | |
download | jemalloc-e62aa478c79865242363d3531fc58c4c7f65a1b4.tar.gz |
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.
Diffstat (limited to 'include/jemalloc')
-rw-r--r-- | include/jemalloc/internal/prof_structs.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/jemalloc/internal/prof_structs.h b/include/jemalloc/internal/prof_structs.h index da3cf8d5..49061f02 100644 --- a/include/jemalloc/internal/prof_structs.h +++ b/include/jemalloc/internal/prof_structs.h @@ -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; |