[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Strange behaviour of lua_Alloc
- From: Peter Cawley <lua@...>
- Date: Sun, 9 Mar 2014 01:59:36 +0000
To quote the 5.2 manual:
When ptr is NULL, osize encodes the kind of object that Lua is allocating.
On Sun, Mar 9, 2014 at 1:45 AM, Rena <email@example.com> wrote:
> I just put together a simple test allocator in Lua:
> The very first allocation Lua makes is a realloc, resizing a block from 8
> bytes to 704.
> I don't understand what this means... how can be be realloc()ing a block it
> never allocated?
> Sent from my Game Boy.