lua-users home
lua-l archive

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


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
>
>