[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lua 5.4 calls __gc twice, sometimes
- From: Payo Nel <payonel@...>
- Date: Fri, 24 Apr 2020 19:16:38 +0000
i've let the test suite run literally millions of times now, the bug never repros when i change my proxy __gc
before:
__gc = function(self)
local u = cache[self]
cache[self] = nil
userdata.dispose(u)
end
after:
__gc = function(self)
local u = cache[self]
-- cache[self] = nil
userdata.dispose(u)
end
(again, note that the cache is a weak table (mode k))
_______________________________________________
lua-l mailing list -- lua-l@lists.lua.org
To unsubscribe send an email to lua-l-leave@lists.lua.org