Files
mlua-rs-mlua/src
Alex Orlenko 05778fbe6f Don't store and use wrong main Lua state in module mode (Lua 5.1/JIT only).
When mlua module is loaded from a non-main coroutine we store a reference to it to use later.
If the coroutine is destroyed by GC we can pass a wrong pointer to Lua that will trigger a segfault.
Instead, set main_state as Option and use current (active) state if needed.
Relates to #479
2024-11-04 15:48:22 +00:00
..
2024-10-20 10:42:59 +01:00
2024-10-22 22:41:26 +01:00
2024-10-29 22:56:29 +00:00
2024-10-01 15:21:19 +01:00
2024-10-19 23:10:43 +01:00
2024-10-23 10:40:25 +01:00
2024-10-19 23:10:43 +01:00
2024-10-19 23:10:43 +01:00
2024-10-25 11:05:21 +02:00
2024-07-31 13:42:37 +01:00
2024-11-03 11:48:47 +00:00
2024-07-31 13:42:37 +01:00
2024-10-19 23:10:43 +01:00
2024-10-19 23:58:57 +01:00
2024-10-19 23:10:43 +01:00
2024-10-22 22:41:26 +01:00
2024-10-19 23:10:43 +01:00
2024-10-22 22:41:26 +01:00