diff options
| author | Roberto I <roberto@inf.puc-rio.br> | 2026-07-24 11:16:38 -0300 |
|---|---|---|
| committer | Roberto I <roberto@inf.puc-rio.br> | 2026-07-24 11:16:38 -0300 |
| commit | b18086ea3422ac89d1f7709dd7a37589040e233a (patch) | |
| tree | bd3b234290d279c8282fd76ce51a0aa014ef25bb | |
| parent | af19891bce064a625deeea0fa3d0005f6e22842a (diff) | |
| download | lua-b18086ea3422ac89d1f7709dd7a37589040e233a.tar.gz lua-b18086ea3422ac89d1f7709dd7a37589040e233a.tar.bz2 lua-b18086ea3422ac89d1f7709dd7a37589040e233a.zip | |
Bug: Loading a binary chunk does not run the GC
| -rw-r--r-- | lapi.c | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -1089,6 +1089,7 @@ LUA_API int lua_load (lua_State *L, lua_Reader reader, void *data, | |||
| 1089 | ZIO z; | 1089 | ZIO z; |
| 1090 | int status; | 1090 | int status; |
| 1091 | lua_lock(L); | 1091 | lua_lock(L); |
| 1092 | luaC_checkGC(L); | ||
| 1092 | if (!chunkname) chunkname = "?"; | 1093 | if (!chunkname) chunkname = "?"; |
| 1093 | luaZ_init(L, &z, reader, data); | 1094 | luaZ_init(L, &z, reader, data); |
| 1094 | status = luaD_protectedparser(L, &z, chunkname, mode); | 1095 | status = luaD_protectedparser(L, &z, chunkname, mode); |
