Lines Matching refs:newblock
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_()
183 if (newblock == NULL) /* still no memory? */ in luaM_realloc_()
186 lua_assert((nsize == 0) == (newblock == NULL)); in luaM_realloc_()
188 return newblock; in luaM_realloc_()
194 void *newblock = luaM_realloc_(L, block, osize, nsize); in luaM_saferealloc_() local
195 if (l_unlikely(newblock == NULL && nsize > 0)) /* allocation failed? */ in luaM_saferealloc_()
197 return newblock; in luaM_saferealloc_()
206 void *newblock = firsttry(g, NULL, tag, size); in luaM_malloc_() local
207 if (l_unlikely(newblock == NULL)) { in luaM_malloc_()
208 newblock = tryagain(L, NULL, tag, size); in luaM_malloc_()
209 if (newblock == NULL) in luaM_malloc_()
213 return newblock; in luaM_malloc_()