mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-13 16:35:35 +08:00
9697f95b8f
This reverts commit 15d999759e
.
25 lines
455 B
C
25 lines
455 B
C
#include "lib_acl.h"
|
|
|
|
int main(void)
|
|
{
|
|
ACL_DBUF_POOL *dbuf = acl_dbuf_pool_create(8192);
|
|
char *huge_ptr;
|
|
int i;
|
|
|
|
for (i = 0; i < 10240; i++)
|
|
acl_dbuf_pool_alloc(dbuf, 128);
|
|
|
|
huge_ptr = acl_dbuf_pool_alloc(dbuf, 81920);
|
|
|
|
for (i = 0; i < 10240; i++)
|
|
acl_dbuf_pool_alloc(dbuf, 128);
|
|
|
|
acl_dbuf_pool_free(dbuf, huge_ptr);
|
|
|
|
acl_dbuf_pool_destroy(dbuf);
|
|
|
|
printf("---------------OK--------------------\r\n");
|
|
|
|
return 0;
|
|
}
|