Commit graph

4 commits

Author SHA1 Message Date
npt-1707
dd0de15269
Fix potential vulnerable cloned functions: Bug: Lua can generate wrong code when _ENV is <const> 2025-04-24 13:05:49 +02:00
npt-1707
edf2ce7cfe Fix potential vulnerable cloned functions: Save stack space while handling errors 2025-04-24 17:06:24 +08:00
Robin Gareus
78cf0e5235
Customize Lua GC, add object-memory-lock API.
Add custom API to prevent Lua Objects from being garbage collected.
This is intended to for Ardour LuaBridge bindings (~1MB Objects:
tables, functions and userdata).
The bindings are persistent and the gc can skip them in mark & sweep
phases. This is a significant performance improvement for garbage
collection.

Note. The next version of Lua (5.4) will come with a generational-gc
rather than an incremental, so extending the API at this point in time
is acceptable.
2019-10-29 05:45:43 +01:00
Robin Gareus
130211a4bd
Update Lua to upstream 5.3.5 2019-10-29 05:36:24 +01:00