Address compiler warnings in the unit tests
This commit is contained in:
parent
d131331310
commit
e1338703ef
@ -32,6 +32,8 @@ static hpa_shard_opts_t test_hpa_shard_opts_default = {
|
|||||||
false,
|
false,
|
||||||
/* hugify_delay_ms */
|
/* hugify_delay_ms */
|
||||||
10 * 1000,
|
10 * 1000,
|
||||||
|
/* min_purge_interval_ms */
|
||||||
|
5 * 1000,
|
||||||
};
|
};
|
||||||
|
|
||||||
static hpa_shard_t *
|
static hpa_shard_t *
|
||||||
|
@ -144,7 +144,6 @@ TEST_BEGIN(test_retained) {
|
|||||||
|
|
||||||
arena_t *arena = arena_get(tsdn_fetch(), arena_ind, false);
|
arena_t *arena = arena_get(tsdn_fetch(), arena_ind, false);
|
||||||
size_t usable = 0;
|
size_t usable = 0;
|
||||||
size_t fragmented = 0;
|
|
||||||
for (pszind_t pind = sz_psz2ind(HUGEPAGE); pind <
|
for (pszind_t pind = sz_psz2ind(HUGEPAGE); pind <
|
||||||
arena->pa_shard.pac.exp_grow.next; pind++) {
|
arena->pa_shard.pac.exp_grow.next; pind++) {
|
||||||
size_t psz = sz_pind2sz(pind);
|
size_t psz = sz_pind2sz(pind);
|
||||||
@ -158,7 +157,6 @@ TEST_BEGIN(test_retained) {
|
|||||||
"Excessive retained memory "
|
"Excessive retained memory "
|
||||||
"(%#zx[+%#zx] > %#zx)", usable, psz_usable,
|
"(%#zx[+%#zx] > %#zx)", usable, psz_usable,
|
||||||
allocated);
|
allocated);
|
||||||
fragmented += psz_fragmented;
|
|
||||||
usable += psz_usable;
|
usable += psz_usable;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user