A mirror of the Github mirror of the Lua development repository. https://lua.org
  • C 67%
  • Lua 32.4%
  • Makefile 0.6%
Find a file
Roberto I 2a7cf4f319 More effort in avoiding errors in finalizers
Before calling a finalizer, Lua not only checks stack limits, but
actually ensures that a minimum number of slots are already allocated
for the call. (If it cannot ensure that, it postpones the finalizer.)
That avoids finalizers not running due to memory errors that the
programmer cannot control.
2026-01-11 15:36:03 -03:00
manual Format adjust in the manual 2025-12-10 10:35:05 -03:00
testes More effort in avoiding errors in finalizers 2026-01-11 15:36:03 -03:00
.gitignore 'lua_upvalueid' returns NULL on invalid upvalue index 2020-10-12 14:51:28 -03:00
all 'lua_checkstack' doesn't need to check stack overflow 2022-05-23 10:38:03 -03:00
lapi.c BUG: Arithmetic overflow in 'collectgarbage"step"' 2025-12-27 16:22:13 -03:00
lapi.h Using CIST_CLSRET instead of trick with 'nresults' 2024-07-19 17:34:22 -03:00
lauxlib.c 'luaL_newstate' starts state with warnings on 2025-12-13 11:00:30 -03:00
lauxlib.h Special case for 'string.rep' over an empty string 2026-01-04 16:39:22 -03:00
lbaselib.c '__pairs' can also return a to-be-closed object 2025-11-11 15:11:06 -03:00
lcode.c Wrong assert in 'luaK_indexed' 2025-12-08 11:08:12 -03:00
lcode.h Global initialization checks name conflict 2025-11-08 11:43:42 -03:00
lcorolib.c In luaB_close, running coroutines do not go to default 2025-12-01 10:25:44 -03:00
lctype.c Details (comments) 2025-07-07 15:02:09 -03:00
lctype.h Better documentation for 'lctype.h' 2020-09-03 09:52:43 -03:00
ldblib.c Debug information about extra arguments from __call 2024-11-19 14:09:18 -03:00
ldebug.c Functions with vararg tables don't need hidden args. 2025-11-28 15:12:51 -03:00
ldebug.h Global initialization checks name conflict 2025-11-08 11:43:42 -03:00
ldo.c More effort in avoiding errors in finalizers 2026-01-11 15:36:03 -03:00
ldo.h GC checks stack space before running finalizer 2025-12-13 16:16:59 -03:00
ldump.c Change in dumping of NULL strings 2025-10-10 15:28:41 -03:00
lfunc.c Small cleaning services 2025-08-20 13:59:08 -03:00
lfunc.h New type 'TStatus' for thread status/error codes 2025-01-30 11:41:39 -03:00
lgc.c More effort in avoiding errors in finalizers 2026-01-11 15:36:03 -03:00
lgc.h Detail (debugging aid) 2025-01-06 12:41:39 -03:00
linit.c llimits.h being used by all Lua code 2024-06-20 14:46:06 -03:00
liolib.c New compile option LUA_USE_OFF_T 2025-08-26 12:30:34 -03:00
ljumptab.h Global initialization checks name conflict 2025-11-08 11:43:42 -03:00
llex.c Slightly faster way to check for "global" 2025-05-16 14:51:07 -03:00
llex.h Slightly faster way to check for "global" 2025-05-16 14:51:07 -03:00
llimits.h Added "attribute internal" to __MACH__ platforms 2025-10-18 10:30:12 -03:00
lmathlib.c Details 2025-09-05 15:36:47 -03:00
lmem.c GC back to controling pace counting bytes 2024-09-19 19:02:14 -03:00
lmem.h Array sizes in undump changed from unsigned to int 2025-02-20 10:09:04 -03:00
loadlib.c Short strings can be external, too 2025-07-15 14:40:27 -03:00
lobject.c Added some casts for 32-bit machines 2025-07-29 11:50:20 -03:00
lobject.h Functions with vararg tables don't need hidden args. 2025-11-28 15:12:51 -03:00
lopcodes.c Global initialization checks name conflict 2025-11-08 11:43:42 -03:00
lopcodes.h Functions with vararg tables don't need hidden args. 2025-11-28 15:12:51 -03:00
lopnames.h Global initialization checks name conflict 2025-11-08 11:43:42 -03:00
loslib.c Details 2025-09-05 15:36:47 -03:00
lparser.c Details 2025-12-08 13:09:47 -03:00
lparser.h Optimization for vararg tables 2025-09-24 18:33:08 -03:00
lprefix.h Several details about 5.4.0 rc1 2020-04-23 14:48:15 -03:00
lstate.c More effort in avoiding errors in finalizers 2026-01-11 15:36:03 -03:00
lstate.h More effort in avoiding errors in finalizers 2026-01-11 15:36:03 -03:00
lstring.c Details 2025-10-14 13:50:24 -03:00
lstring.h Details 2025-10-14 13:50:24 -03:00
lstrlib.c Special case for 'string.rep' over an empty string 2026-01-04 16:39:22 -03:00
ltable.c Details 2026-01-04 16:27:54 -03:00
ltable.h Randomness added to table length computation 2025-07-18 16:18:30 -03:00
ltablib.c Parameters for 'lua_createtable' back to int 2025-01-21 13:33:59 -03:00
ltests.c More effort in avoiding errors in finalizers 2026-01-11 15:36:03 -03:00
ltests.h Details 2025-10-31 14:48:55 -03:00
ltm.c Functions with vararg tables don't need hidden args. 2025-11-28 15:12:51 -03:00
ltm.h Details 2025-12-30 10:50:49 -03:00
lua.c 'luaL_newstate' starts state with warnings on 2025-12-13 11:00:30 -03:00
lua.h Removed code for compatibility with version 5.3 2025-08-20 16:10:54 -03:00
luaconf.h Details 2025-09-05 15:36:47 -03:00
lualib.h New interface to function 'luaL_openselectedlibs' 2024-02-15 11:17:39 -03:00
lundump.c Change in dumping of NULL strings 2025-10-10 15:28:41 -03:00
lundump.h Checks for type 'int' added to binary header 2025-03-10 15:21:32 -03:00
lutf8lib.c Details 2025-10-31 14:48:55 -03:00
lvm.c New conceptual model for vararg 2025-11-26 11:18:29 -03:00
lvm.h Details 2025-01-16 11:51:16 -03:00
lzio.c Cleaning of llimits.h 2024-06-20 13:43:33 -03:00
lzio.h Added gcc option '-Wconversion' 2024-07-27 13:32:59 -03:00
makefile Added "attribute internal" to __MACH__ platforms 2025-10-18 10:30:12 -03:00
onelua.c update in 'onelua.c' 2025-08-26 12:30:05 -03:00
README.md Details 2020-12-02 15:13:13 -03:00

Lua

This is the repository of Lua development code, as seen by the Lua team. It contains the full history of all commits but is mirrored irregularly. For complete information about Lua, visit Lua.org.

Please do not send pull requests. To report issues, post a message to the Lua mailing list.

Download official Lua releases from Lua.org.