lua-users home
lua-l archive

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

On Wed, Dec 8, 2021 at 10:54 AM 김지회 <> wrote:
So, attempting to
- concatenate strings or
- create an empty table or
- add a new key to an existing table
inside a finalizer will sometimes result in raising OOM error?

I don't think the things can lead to OOM error, even in finalizer.
The problem may ocur when we use 'collectgarbage' inside of finalizer.
Do concatenating, creating table, and adding a new key lead to any single 'step' in garbage collecting algorithm?

--Regards, Jihoi.

They allocate memory. Memory allocations can trigger the GC if there's not enough available.

/s/ Adam