Skip to content

Commit

Permalink
Add libumfInit call to the umfJemallocPoolParamsCreate
Browse files Browse the repository at this point in the history
  • Loading branch information
vinser52 committed Nov 27, 2024
1 parent 109cc50 commit fa23dd8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pool/pool_jemalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <string.h>

#include "base_alloc_global.h"
#include "libumf.h"
#include "utils_common.h"
#include "utils_concurrency.h"
#include "utils_log.h"
Expand Down Expand Up @@ -61,6 +62,7 @@ static jemalloc_memory_pool_t *get_pool_by_arena_index(unsigned arena_ind) {

umf_result_t
umfJemallocPoolParamsCreate(umf_jemalloc_pool_params_handle_t *hParams) {
libumfInit();
if (!hParams) {
LOG_ERR("jemalloc pool params handle is NULL");
return UMF_RESULT_ERROR_INVALID_ARGUMENT;
Expand Down

0 comments on commit fa23dd8

Please sign in to comment.