adjusted the memory pool size of t-009.c
This commit is contained in:
parent
9d18c2ce2a
commit
846cbcf951
@ -653,7 +653,7 @@ void* hawk_xma_realloc (hawk_xma_t* xma, void* b, hawk_oow_t size)
|
|||||||
{
|
{
|
||||||
void* n;
|
void* n;
|
||||||
|
|
||||||
if (b == HAWK_NULL)
|
if (!b)
|
||||||
{
|
{
|
||||||
/* 'realloc' with NULL is the same as 'alloc' */
|
/* 'realloc' with NULL is the same as 'alloc' */
|
||||||
n = hawk_xma_alloc(xma, size);
|
n = hawk_xma_alloc(xma, size);
|
||||||
|
@ -44,7 +44,7 @@ int main()
|
|||||||
double malloc_time = 0.0, free_time = 0.0;
|
double malloc_time = 0.0, free_time = 0.0;
|
||||||
|
|
||||||
no_plan();
|
no_plan();
|
||||||
hawk_init_xma_mmgr(&xma_mmgr, NUM_OPERATIONS * MAX_ALLOC_SIZE);
|
hawk_init_xma_mmgr(&xma_mmgr, 20000000);
|
||||||
|
|
||||||
srand((unsigned int)time(NULL));
|
srand((unsigned int)time(NULL));
|
||||||
start_time = clock();
|
start_time = clock();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user