lua-users home
lua-l archive

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

On Sat, Mar 8, 2014 at 8:59 PM, Peter Cawley <> wrote:
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 <> 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.

I really need to pay more attention. :)

Sent from my Game Boy.