Home
last modified time | relevance | path

Searched refs:newblock (Results 1 – 5 of 5) sorted by relevance

/freebsd/contrib/lua/src/
H A Dlmem.c99 void *newblock; in luaM_growaux_() local
118 return newblock; in luaM_growaux_()
130 void *newblock; in luaM_shrinkvector_() local
136 return newblock; in luaM_shrinkvector_()
177 void *newblock; in luaM_realloc_() local
180 newblock = firsttry(g, block, osize, nsize); in luaM_realloc_()
188 return newblock; in luaM_realloc_()
197 return newblock; in luaM_saferealloc_()
207 if (l_unlikely(newblock == NULL)) { in luaM_malloc_()
209 if (newblock == NULL) in luaM_malloc_()
[all …]
H A Dltests.c243 Header *newblock; in debug_realloc() local
248 newblock = cast(Header *, malloc(realsize)); /* alloc a new block */ in debug_realloc()
249 if (newblock == NULL) in debug_realloc()
252 memcpy(newblock + 1, block + 1, commonsize); /* copy old contents */ in debug_realloc()
256 fillmem(cast_charp(newblock + 1) + commonsize, size - commonsize); in debug_realloc()
259 *(cast_charp(newblock + 1) + size + i) = MARK; in debug_realloc()
260 newblock->d.size = size; in debug_realloc()
261 newblock->d.type = type; in debug_realloc()
267 return newblock + 1; in debug_realloc()
/freebsd/sys/contrib/openzfs/module/lua/
H A Dlmem.c46 void *newblock; in luaM_growaux_() local
58 newblock = luaM_reallocv(L, block, *size, newsize, size_elems); in luaM_growaux_()
60 return newblock; in luaM_growaux_()
74 void *newblock; in luaM_realloc_() local
82 newblock = (*g->frealloc)(g->ud, block, osize, nsize); in luaM_realloc_()
83 if (newblock == NULL && nsize > 0) { in luaM_realloc_()
88 newblock = (*g->frealloc)(g->ud, block, osize, nsize); /* try again */ in luaM_realloc_()
90 if (newblock == NULL) in luaM_realloc_()
93 lua_assert((nsize == 0) == (newblock == NULL)); in luaM_realloc_()
95 return newblock; in luaM_realloc_()
/freebsd/contrib/lib9p/pytest/
H A Dnumalloc.py359 newblock = [val, highval]
360 self.avail.insert(i, newblock)
/freebsd/sbin/pfctl/
H A Dpfctl_optimize.c641 struct superblock *newblock; in reorder_rules() local
760 if ((newblock = calloc(1, sizeof(*newblock))) in reorder_rules()
765 TAILQ_INIT(&newblock->sb_rules); in reorder_rules()
767 TAILQ_INIT(&newblock->sb_skipsteps[i]); in reorder_rules()
768 TAILQ_INSERT_BEFORE(block, newblock, sb_entry); in reorder_rules()
774 newblock = block; in reorder_rules()
781 TAILQ_INSERT_TAIL(&newblock->sb_rules, por, in reorder_rules()
789 if (newblock != block) in reorder_rules()
790 if (reorder_rules(pf, newblock, depth + 1)) in reorder_rules()