Use new non-zeroing allocator APIs
Signed-off-by: Jan Musial <jan.musial@intel.com>
This commit is contained in:
6
env/posix/utils_mpool.c
vendored
6
env/posix/utils_mpool.c
vendored
@@ -29,7 +29,8 @@ struct env_mpool {
|
||||
struct env_mpool *env_mpool_create(uint32_t hdr_size, uint32_t elem_size,
|
||||
int flags, int mpool_max, bool fallback,
|
||||
const uint32_t limits[env_mpool_max],
|
||||
const char *name_perfix)
|
||||
const char *name_perfix,
|
||||
bool zero)
|
||||
{
|
||||
uint32_t i;
|
||||
char name[MPOOL_ALLOCATOR_NAME_MAX] = { '\0' };
|
||||
@@ -56,7 +57,8 @@ struct env_mpool *env_mpool_create(uint32_t hdr_size, uint32_t elem_size,
|
||||
size = hdr_size + (elem_size * (1 << i));
|
||||
|
||||
mpool->allocator[i] = env_allocator_create_extended(
|
||||
size, name, limits ? limits[i] : -1);
|
||||
size, name, limits ? limits[i] : -1,
|
||||
zero);
|
||||
|
||||
if (!mpool->allocator[i])
|
||||
goto err;
|
||||
|
Reference in New Issue
Block a user