HPA: Pull out a hooks type.

For now, this is a no-op change.  In a subsequent commit, it will be useful for
testing.
This commit is contained in:
David Goldblatt
2021-06-14 14:18:08 -07:00
committed by David Goldblatt
parent 1d4a7666d5
commit 113938b6f4
14 changed files with 100 additions and 29 deletions

View File

@@ -1800,7 +1800,7 @@ malloc_init_hard_a0_locked() {
hpa_shard_opts_t hpa_shard_opts = opt_hpa_opts;
hpa_shard_opts.deferral_allowed = background_thread_enabled();
if (pa_shard_enable_hpa(TSDN_NULL, &a0->pa_shard,
&hpa_shard_opts, &opt_hpa_sec_opts)) {
&hpa_hooks_default, &hpa_shard_opts, &opt_hpa_sec_opts)) {
return true;
}
}