Lines Matching refs:newblock
103 void *newblock; in luaM_growaux_() local
119 newblock = luaM_saferealloc_(L, block, cast_sizet(*psize) * size_elems, in luaM_growaux_()
122 return newblock; in luaM_growaux_()
134 void *newblock; in luaM_shrinkvector_() local
138 newblock = luaM_saferealloc_(L, block, oldsize, newsize); in luaM_shrinkvector_()
140 return newblock; in luaM_shrinkvector_()
181 void *newblock; in luaM_realloc_() local
184 newblock = firsttry(g, block, osize, nsize); in luaM_realloc_()
185 if (l_unlikely(newblock == NULL && nsize > 0)) { in luaM_realloc_()
186 newblock = tryagain(L, block, osize, nsize); in luaM_realloc_()
187 if (newblock == NULL) /* still no memory? */ in luaM_realloc_()
190 lua_assert((nsize == 0) == (newblock == NULL)); in luaM_realloc_()
192 return newblock; in luaM_realloc_()
198 void *newblock = luaM_realloc_(L, block, osize, nsize); in luaM_saferealloc_() local
199 if (l_unlikely(newblock == NULL && nsize > 0)) /* allocation failed? */ in luaM_saferealloc_()
201 return newblock; in luaM_saferealloc_()
210 void *newblock = firsttry(g, NULL, tag, size); in luaM_malloc_() local
211 if (l_unlikely(newblock == NULL)) { in luaM_malloc_()
212 newblock = tryagain(L, NULL, tag, size); in luaM_malloc_()
213 if (newblock == NULL) in luaM_malloc_()
217 return newblock; in luaM_malloc_()