openresty / luajit2

OpenResty's Branch of LuaJIT 2
https://luajit.org/luajit.html
Other
1.2k stars 193 forks source link

__gc metamethod not being called on lua_close() on windows builds #149

Closed vinipsmaker closed 2 years ago

vinipsmaker commented 2 years ago

Hi, I'm using openresty's fork of luajit on windows builds for this project: https://gitlab.com/emilua/emilua

And some tests are failing. Upon further investigation I've noticed the __gc metamethod is not being called to finalize my userdatas. The Linux behaviour is correct, but it fails on Windows.

Please let me know if there's any info I can provide to help.

vinipsmaker commented 2 years ago

Nevermind. I just realized I had to compile the project with /EHa on Windows.