Searched refs:newblock (Results 1 – 5 of 5) sorted by relevance
/freebsd/contrib/lua/src/ |
H A D | lmem.c | 99 void *newblock; in luaM_growaux_() local 115 newblock = luaM_saferealloc_(L, block, cast_sizet(*psize) * size_elems, in luaM_growaux_() 118 return newblock; in luaM_growaux_() 130 void *newblock; in luaM_shrinkvector_() local 134 newblock = luaM_saferealloc_(L, block, oldsize, newsize); in luaM_shrinkvector_() 136 return newblock; in luaM_shrinkvector_() 177 void *newblock; in luaM_realloc_() local 180 newblock = firsttry(g, block, osize, nsize); in luaM_realloc_() 181 if (l_unlikely(newblock == NULL && nsize > 0)) { in luaM_realloc_() 182 newblock = tryagain(L, block, osize, nsize); in luaM_realloc_() [all …]
|
H A D | ltests.c | 243 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 D | lmem.c | 46 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 D | numalloc.py | 359 newblock = [val, highval] 360 self.avail.insert(i, newblock)
|
/freebsd/sbin/pfctl/ |
H A D | pfctl_optimize.c | 657 struct superblock *newblock; in reorder_rules() local 776 if ((newblock = calloc(1, sizeof(*newblock))) in reorder_rules() 781 TAILQ_INIT(&newblock->sb_rules); in reorder_rules() 783 TAILQ_INIT(&newblock->sb_skipsteps[i]); in reorder_rules() 784 TAILQ_INSERT_BEFORE(block, newblock, sb_entry); in reorder_rules() 790 newblock = block; in reorder_rules() 797 TAILQ_INSERT_TAIL(&newblock->sb_rules, por, in reorder_rules() 805 if (newblock != block) in reorder_rules() 806 if (reorder_rules(pf, newblock, depth + 1)) in reorder_rules()
|