[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Question about Lua 5.1.3 and realloc() on life.lua
- From: "Bogdan Marinescu" <bogdan.marinescu@...>
- Date: Sat, 3 May 2008 12:50:43 +0300
That's correct, but for the statistics it's often enough to have just
what Lua thinks. If one writes his own allocator, chances are high
that the real size of the blocks is known to the allocator.
On Sat, May 3, 2008 at 5:40 AM, Brett Nash <nash@nash.id.au> wrote:
> On Fri, 2008-05-02 at 12:31 +0300, Bogdan Marinescu wrote:
> > Thanks for your advice. I don't need to save the block size, Lua calls
> > its allocator function with both the old size and the new size of the
> > block. Free bookkeeping for me.
>
> Umm... Isn't that the size that Lua thinks it is? So you need to still
> keep the real size of the allocation correct?
>
> Regards,
> nash
>
>