lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 6/18/2018 1:33 PM, Luiz Henrique de Figueiredo wrote:
> Lua 5.4.0 (work2) is now available for testing at
>          http://www.lua.org/work/lua-5.4.0-work2.tar.gz
> 
> The checksums are
>          MD5     3cdf2a4eb84dde6b6aaf5d2d1de07be9  -
>          SHA1    e8484e61c5c338e3ec2f75dbe0f6703d079fecf9  -
> 
> This is a work version. All details may change in the final version.
> 
> An updated reference manual is included and also available at
>          http://www.lua.org/work/doc
> 
> The complete diffs from work1 to work2 are available at
>          http://www.lua.org/work/diffs-lua-5.4.0-work1-work2.html
>          http://www.lua.org/work/diffu-lua-5.4.0-work1-work2.html
> 
> Previous work versions are available at
>          http://www.lua.org/work/
> 
> The focus of Lua 5.4.0 is performance. We're especially interested in
> feedback about its performance but all feedback is welcome. Thanks.
> --lhf
> 

 From lmem.c:

void luaM_free_ (lua_State *L, void *block, size_t osize) {
   global_State *g = G(L);
   lua_assert((block == 0) == (block == NULL));
   (*g->frealloc)(g->ud, block, osize, 0);
   g->GCdebt -= osize;
}

The lua_assert should (probably) be:

lua_assert((osize == 0) == (block == NULL));