提交 8065691b authored 作者: Anthony Minessale's avatar Anthony Minessale

add test to repro bug

上级 945a3b25
...@@ -52,7 +52,7 @@ typedef struct alloc_prefix_s { ...@@ -52,7 +52,7 @@ typedef struct alloc_prefix_s {
} alloc_prefix_t; } alloc_prefix_t;
#define PREFIX_SIZE sizeof(struct alloc_prefix_s) #define PREFIX_SIZE sizeof(struct alloc_prefix_s)
//#define DEBUG 1 #define DEBUG 1
/* /*
* bitflag tools for Variable and a Flag * bitflag tools for Variable and a Flag
*/ */
......
...@@ -62,6 +62,17 @@ int main(int argc, char **argv) ...@@ -62,6 +62,17 @@ int main(int argc, char **argv)
} }
} }
status = ks_pool_open(&pool);
void *blah = ks_pool_alloc(pool, 64 * 1024);
ks_pool_free(pool, &blah);
blah = ks_pool_alloc(pool, 2 * 1024);
ks_pool_close(&pool);
status = ks_pool_open(&pool); status = ks_pool_open(&pool);
printf("OPEN: %p\n", (void *)pool); printf("OPEN: %p\n", (void *)pool);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论