Lines Matching refs:g_pool

170 	struct dir_info *g_pool;	/* Main bookkeeping information */  member
194 #define g_pool mopts.g_pool macro
820 STATS_INC(g_pool->deletes); in delete()
836 STATS_INC(g_pool->delete_moves); in delete()
1067 p = map(g_pool, psz, zero_fill); in omalloc()
1072 if (insert(g_pool, p, sz, f)) { in omalloc()
1073 unmap(g_pool, p, psz); in omalloc()
1109 p = malloc_bytes(g_pool, sz, f); in omalloc()
1139 if (omalloc_init(&g_pool)) { in malloc_init()
1157 if (g_pool == NULL) { in malloc()
1183 r = find(g_pool, p); in ofree()
1220 unmap(g_pool, p, PAGEROUND(sz)); in ofree()
1221 delete(g_pool, r); in ofree()
1231 p = g_pool->delayed_chunks[i]; in ofree()
1232 g_pool->delayed_chunks[i] = tmp; in ofree()
1235 r = find(g_pool, p); in ofree()
1240 free_bytes(g_pool, r, p); in ofree()
1256 if (g_pool == NULL) { in free()
1282 r = find(g_pool, p); in orealloc()
1314 STATS_INC(g_pool->cheap_realloc_tries); in orealloc()
1315 zapcacheregion(g_pool, hint, needed); in orealloc()
1327 STATS_INC(g_pool->cheap_reallocs); in orealloc()
1345 unmap(g_pool, (char *)p + rnewsz, roldsz - rnewsz); in orealloc()
1385 if (g_pool == NULL) { in realloc()
1417 if (g_pool == NULL) { in calloc()
1511 p = mapalign(g_pool, alignment, psz, zero_fill); in omemalign()
1517 if (insert(g_pool, p, sz, f)) { in omemalign()
1518 unmap(g_pool, p, psz); in omemalign()
1553 if (g_pool == NULL) { in posix_memalign()
1808 p = g_pool->delayed_chunks[i]; in malloc_dump()
1811 r = find(g_pool, p); in malloc_dump()
1814 free_bytes(g_pool, r, p); in malloc_dump()
1815 g_pool->delayed_chunks[i] = NULL; in malloc_dump()
1819 malloc_dump1(fd, g_pool); in malloc_dump()