Re: Garbage Collection Breaks Next
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Garbage Collection Breaks Next
- From: Xmilia Hermit <xmilia.hermit@...>
- Date: 2020年10月13日 01:23:25 +0200
Seems like globals are traversed first, so using a global table this
problem can happen in the main thread.
t = {}
t["no" .. "ref1"] = 1
t["no" .. "ref2"] = 2
for k, v in pairs(t) do
t[k] = nil
print(k, v)
collectgarbage("collect")
end
Regards,
Xmilia