mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 21:23:06 +00:00
Introduce hpdata_t.
Using an edata_t both for hugepages and the allocations within those hugepages was convenient at first, but has outlived its usefulness. Representing hugepages explicitly, with their own data structure, will make future development easier.
This commit is contained in:
committed by
David Goldblatt
parent
4a15008cfb
commit
ca30b5db2b
@@ -38,7 +38,8 @@ create_test_data() {
|
||||
assert_false(err, "");
|
||||
|
||||
err = hpa_shard_init(&test_data->shard, &test_data->emap,
|
||||
&test_data->shard_edata_cache, SHARD_IND, ALLOC_MAX);
|
||||
test_data->base, &test_data->shard_edata_cache, SHARD_IND,
|
||||
ALLOC_MAX);
|
||||
assert_false(err, "");
|
||||
|
||||
return (hpa_shard_t *)test_data;
|
||||
|
||||
Reference in New Issue
Block a user