diff options
author | Damjan Marion <damarion@cisco.com> | 2020-09-16 21:36:00 +0200 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2020-09-17 10:38:23 +0000 |
commit | c63e2a4f980e09b4274558f0562cee285f9741b5 (patch) | |
tree | aff372a95841fcb4d00e9f67298497fe858f6224 /src/vppinfra/mem_dlmalloc.c | |
parent | f6e6c788070e1421bbe7b10d449d9b65918ba561 (diff) |
vppinfra: detect memory attributes on clib_mem_init
Type: improvement
Change-Id: I298aadfdf17d98dfb1ada1ec4f87e0821e6aeb7f
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vppinfra/mem_dlmalloc.c')
-rw-r--r-- | src/vppinfra/mem_dlmalloc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vppinfra/mem_dlmalloc.c b/src/vppinfra/mem_dlmalloc.c index 2cd924a605d..0401df5993e 100644 --- a/src/vppinfra/mem_dlmalloc.c +++ b/src/vppinfra/mem_dlmalloc.c @@ -201,6 +201,8 @@ clib_mem_init_internal (void *memory, uword memory_size, int set_heap) { u8 *heap; + clib_mem_main_init (); + if (memory) { heap = create_mspace_with_base (memory, memory_size, 1 /* locked */ ); |