Files
redis/src
debing.sun ffff7fea7c Rebuild function engines for function flush command (#13383)
### Issue
The current implementation of `FUNCTION FLUSH` command uses
`lua_unref()` to unreference script closures in Lua vm. However,
invoking `lua_unref()` during lazy free (`ASYNC` argument) is risky
since it is not thread-safe.

Another issue is that using `lua_unref()` to unreference references does
not trigger GC, This can result in the Lua VM leaves a significant
amount of garbage, which may never be cleaned up if not properly GC.

### Solution
The proposed solution is to completely rebuild the engines, resulting in
a brand new Lua VM.

---------

Co-authored-by: meir <meir@redis.com>
2024-07-10 17:35:36 +08:00
..
2024-06-24 18:11:53 +03:00
2024-07-09 18:54:18 +08:00
2020-04-24 17:11:21 -07:00
2024-07-09 18:54:18 +08:00
2024-04-18 16:06:30 +03:00
2024-04-18 16:06:30 +03:00
2024-04-18 16:06:30 +03:00
2024-05-30 15:26:19 +08:00
2024-04-18 16:06:30 +03:00
2024-04-18 16:06:30 +03:00
2024-05-30 15:26:19 +08:00
2024-04-18 16:06:30 +03:00
2024-04-18 16:06:30 +03:00
2024-07-09 18:54:18 +08:00
2021-07-10 10:04:54 -05:00
2022-07-18 10:56:26 +03:00