mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-22 10:52:12 +03:00
HPA: Some minor reformattings.
This commit is contained in:
parent
b25ee5d88e
commit
94cd9444c5
2 changed files with 12 additions and 9 deletions
|
|
@ -77,6 +77,10 @@ struct hpdata_s {
|
|||
fb_group_t dirty_pages[FB_NGROUPS(HUGEPAGE_PAGES)];
|
||||
};
|
||||
|
||||
TYPED_LIST(hpdata_list, hpdata_t, ql_link)
|
||||
typedef ph(hpdata_t) hpdata_age_heap_t;
|
||||
ph_proto(, hpdata_age_heap_, hpdata_age_heap_t, hpdata_t);
|
||||
|
||||
static inline void *
|
||||
hpdata_addr_get(const hpdata_t *hpdata) {
|
||||
return hpdata->h_address;
|
||||
|
|
@ -188,11 +192,6 @@ hpdata_assert_consistent(hpdata_t *hpdata) {
|
|||
assert(hpdata_consistent(hpdata));
|
||||
}
|
||||
|
||||
TYPED_LIST(hpdata_list, hpdata_t, ql_link)
|
||||
|
||||
typedef ph(hpdata_t) hpdata_age_heap_t;
|
||||
ph_proto(, hpdata_age_heap_, hpdata_age_heap_t, hpdata_t);
|
||||
|
||||
static inline bool
|
||||
hpdata_empty(hpdata_t *hpdata) {
|
||||
return hpdata->h_nactive == 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue