Re: lua 5.4 calls __gc twice, sometimes
[
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: 2020年4月24日 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