version 1.1.2.10, 2012/02/28 12:05:58
|
version 1.1.2.12, 2012/02/28 12:45:51
|
Line 34 main(int argc, char **argv)
|
Line 34 main(int argc, char **argv)
|
printf("Error:: #%d - %s\n", sess_GetErrno(), sess_GetError()); |
printf("Error:: #%d - %s\n", sess_GetErrno(), sess_GetError()); |
return 1; |
return 1; |
} |
} |
|
/* |
|
mpool_getquota(mp, &curr, NULL); |
|
printf("___current=%lu\n", curr); |
|
*/ |
|
|
for (i = 0; i < 3; i++) { |
for (i = 0; i < 3; i++) { |
addr = mpool_malloc(mp, 4000, "mdaaa 4000"); |
addr = mpool_malloc(mp, 4000, "mdaaa 4000"); |
Line 57 main(int argc, char **argv)
|
Line 61 main(int argc, char **argv)
|
mp->pool_bytes.alloc, mp->pool_bytes.cache, mp->pool_bytes.free); |
mp->pool_bytes.alloc, mp->pool_bytes.cache, mp->pool_bytes.free); |
mpool_statistics(mp, show); |
mpool_statistics(mp, show); |
|
|
addr = mpool_realloc(mp, addr, 1000, "|||||||||||||"); | addr = mpool_realloc(mp, addr, 4010, "|||||||||||||"); |
if (!addr) |
if (!addr) |
printf("Error:: #%d - %s\n", sess_GetErrno(), sess_GetError()); |
printf("Error:: #%d - %s\n", sess_GetErrno(), sess_GetError()); |
mpool_getquota(mp, &curr, NULL); |
mpool_getquota(mp, &curr, NULL); |