diff options
| author | Roberto I <roberto@inf.puc-rio.br> | 2026-04-01 14:59:41 -0300 |
|---|---|---|
| committer | Roberto I <roberto@inf.puc-rio.br> | 2026-04-01 14:59:41 -0300 |
| commit | f1bb2773bba8b16f0f01c00e59a7be541ef88cb7 (patch) | |
| tree | 1ce1de2b525371cd29b14671efe1d49e5a23ada0 /lapi.c | |
| parent | 51269bd783c9371252947b26cc865239dbb0153d (diff) | |
| download | lua-f1bb2773bba8b16f0f01c00e59a7be541ef88cb7.tar.gz lua-f1bb2773bba8b16f0f01c00e59a7be541ef88cb7.tar.bz2 lua-f1bb2773bba8b16f0f01c00e59a7be541ef88cb7.zip | |
Bug: Loading a binary chunk does not run the GC
Diffstat (limited to '')
| -rw-r--r-- | lapi.c | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -1122,6 +1122,7 @@ LUA_API int lua_load (lua_State *L, lua_Reader reader, void *data, | |||
| 1122 | ZIO z; | 1122 | ZIO z; |
| 1123 | TStatus status; | 1123 | TStatus status; |
| 1124 | lua_lock(L); | 1124 | lua_lock(L); |
| 1125 | luaC_checkGC(L); | ||
| 1125 | if (!chunkname) chunkname = "?"; | 1126 | if (!chunkname) chunkname = "?"; |
| 1126 | luaZ_init(L, &z, reader, data); | 1127 | luaZ_init(L, &z, reader, data); |
| 1127 | status = luaD_protectedparser(L, &z, chunkname, mode); | 1128 | status = luaD_protectedparser(L, &z, chunkname, mode); |
