Lines Matching defs:rpool
11 SM_IDSTR(id, "@(#)$Id: t-rpool.c,v 1.19 2013-11-22 20:51:43 ca Exp $")
15 #include <sm/rpool.h>
36 SM_RPOOL_T *rpool;
41 sm_test_begin(argc, argv, "test rpool");
43 rpool = sm_rpool_new_x(NULL);
44 SM_TEST(rpool != NULL);
45 att = sm_rpool_attach_x(rpool, rfree, "attachment #1");
51 a[i] = sm_rpool_malloc_x(rpool, sz);
55 att = sm_rpool_attach_x(rpool, rfree, "attachment #2");
56 (void) sm_rpool_attach_x(rpool, rfree, "attachment #3");
61 sm_dprintf("heap after filling up rpool:\n");
63 sm_dprintf("freeing rpool:\n");
64 sm_rpool_free(rpool);
65 sm_dprintf("heap after freeing rpool:\n");