Skip to content
This repository was archived by the owner on Jul 14, 2019. It is now read-only.

Commit 16410a5

Browse files
author
Lior Amram
committed
mempool: temporarily log mem allocation
1 parent 8cfce6f commit 16410a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mempool.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ void *mempool_alloc_chunk(size_t s) {
5252
void *mem = memchunks[chunk_index].head;
5353
if (NULL == mem) {
5454
++memchunks[chunk_index].num_chunks;
55+
LOGGER_INFO("mempool: allocating %zu", s);
5556
mem = mmap(NULL, s, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
5657
if (MAP_FAILED == mem)
5758
return LOGGER_PERROR("mmap"), NULL;

0 commit comments

Comments
 (0)