mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Fix mem-heap.c, mem-poolman.c and test_poolman.c compilation for '#ifndef MEM_STATS' case.
This commit is contained in:
parent
4afd54d820
commit
aaf2bc4f41
@ -119,7 +119,7 @@ static void mem_HeapStatFreeBlock( mem_BlockHeader_t *block_header_p);
|
||||
static void mem_HeapStatFreeBlockSplit( void);
|
||||
static void mem_HeapStatFreeBlockMerge( void);
|
||||
#else /* !MEM_STATS */
|
||||
# define mem_InitStats()
|
||||
# define mem_HeapStatInit()
|
||||
# define mem_HeapStatAllocBlock( v)
|
||||
# define mem_HeapStatFreeBlock( v)
|
||||
# define mem_HeapStatFreeBlockSplit()
|
||||
|
||||
@ -65,11 +65,11 @@ static void mem_PoolsStatFreePool( mem_PoolChunkType_t);
|
||||
static void mem_PoolsStatAllocChunk( mem_PoolChunkType_t);
|
||||
static void mem_PoolsStatFreeChunk( mem_PoolChunkType_t);
|
||||
#else /* !MEM_STATS */
|
||||
# define mem_PoolsStatsInit()
|
||||
# define mem_PoolsStatAllocPool()
|
||||
# define mem_PoolsStatsFreePool()
|
||||
# define mem_PoolsStatAllocChunk()
|
||||
# define mem_PoolsStatFreeChunk()
|
||||
# define mem_PoolsStatInit()
|
||||
# define mem_PoolsStatAllocPool(v)
|
||||
# define mem_PoolsStatFreePool(v)
|
||||
# define mem_PoolsStatAllocChunk(v)
|
||||
# define mem_PoolsStatFreeChunk(v)
|
||||
#endif /* !MEM_STATS */
|
||||
|
||||
/**
|
||||
|
||||
@ -93,8 +93,10 @@ main( int __unused argc,
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef MEM_STATS
|
||||
mem_PoolsStats_t stats;
|
||||
mem_PoolsGetStats( &stats);
|
||||
#endif /* MEM_STATS */
|
||||
|
||||
__printf("Pools stats:\n");
|
||||
for(mem_PoolChunkType_t type = 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user