lua-users home
lua-l archive

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


----- Original Message -----
> I have a question about the memory allocation in
> lmem.c.  Is it acceptable to replace malloc, realloc
> and free with custom handlers?  Also, if the custom
> handlers include features like debug byte padding
> surrounding allocated blocks, will Lua handle this

Go ahead and replace 'em ... I have used several memory managers and it has
never caused any problems... Be aware that realloc is used quite offen so
make sure that your memory manager handles this effective!

/Erik