[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Why sweep userdata list "g->finobj" during sweep phase?
- From: Wei John <asamu12358@...>
- Date: Sat, 23 Jan 2016 12:00:20 +0800
Hi,all:
Lua version is 5.2.4.
During GC sweep phase, when finish sweeping string,
GC switch to sweep userdata list:"g->finobj".
But all the white userdatas having "__gc" tag method are
separated to list "g->tobefnz" by function "separatetobefnz()"
during atomic phase, so there no white userdatas in "g->finobj"
after atomic.
What is the reason for GCSsweepudata、sweepfin ?
Thanks.