Searched refs:malloc_cache (Results 1 – 3 of 3) sorted by relevance
181 u_int malloc_cache; /* free pages we cache */ member327 if (psz > mopts.malloc_cache) { in unmap()334 rsz = mopts.malloc_cache - d->free_regions_size; in unmap()338 for (i = 0; tounmap > 0 && i < mopts.malloc_cache; i++) { in unmap()339 r = &d->free_regions[(i + offset) & (mopts.malloc_cache - 1)]; in unmap()356 for (i = 0; i < mopts.malloc_cache; i++) { in unmap()357 r = &d->free_regions[(i + offset) & (mopts.malloc_cache - 1)]; in unmap()369 if (i == mopts.malloc_cache) in unmap()371 if (d->free_regions_size > mopts.malloc_cache) in unmap()382 for (i = 0; i < mopts.malloc_cache; i++) { in zapcacheregion()[all …]
154 static unsigned int malloc_cache = 16; variable484 case '>': malloc_cache <<= 1; break; in malloc_init()485 case '<': malloc_cache >>= 1; break; in malloc_init()552 if (!malloc_cache) in malloc_init()553 malloc_cache++; in malloc_init()555 malloc_cache <<= malloc_pageshift; in malloc_init()1078 pf->size > malloc_cache && /* ..and the cache is full, */ in free_pages()1086 pf->end = (char *)pf->page + malloc_cache; in free_pages()1087 pf->size = malloc_cache; in free_pages()
146 static unsigned int malloc_cache = 16; variable692 malloc_cache <<= 1; in malloc_init()695 malloc_cache >>= 1; in malloc_init()818 if (!malloc_cache) in malloc_init()819 malloc_cache++; in malloc_init()820 malloc_cache <<= malloc_pageshift; in malloc_init()1535 if (pf->size > (malloc_cache - cachesize)) { in free_pages()1541 if (munmap((char *) pf->page + (malloc_cache - cachesize), in free_pages()1542 pf->size - (malloc_cache - cachesize)) != 0) in free_pages()1546 pf->size = malloc_cache - cachesize; in free_pages()