Applied memory tests

This commit is contained in:
e.gavrin
2014-07-08 13:24:57 +04:00
parent f18a5f5e31
commit 823432664e
7 changed files with 367 additions and 30 deletions
-15
View File
@@ -52,21 +52,6 @@ mem_PoolState_t mem_PoolForPoolHeaders;
*/
uint8_t *mem_SpaceForPoolForPoolHeaders;
/**
* Get chunk size from chunk type.
*
* @return size (in bytes) of chunk of specified type
*/
static size_t
mem_GetChunkSize( mem_PoolChunkType_t chunkType) /**< chunk type */
{
uint32_t chunkTypeId = (uint32_t) chunkType;
JERRY_ASSERT( chunkTypeId < MEM_POOL_CHUNK_TYPE__COUNT );
return ( 1u << ( chunkTypeId + 2 ) );
} /* mem_GetChunkSize */
/**
* Initialize pool manager
*/