mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
Improve cleanup() algorithm
This commit is contained in:
parent
154cf77df6
commit
bf1271de23
3 changed files with 75 additions and 32 deletions
|
|
@ -529,6 +529,14 @@ TEST("cleanup()", function()
|
|||
|
||||
do
|
||||
stateA = nil :: any
|
||||
gc()
|
||||
vide.step(0)
|
||||
end
|
||||
|
||||
CHECK(objA.cleaned == 2)
|
||||
CHECK(objB.cleaned == 1)
|
||||
|
||||
do
|
||||
stateB = nil :: any
|
||||
gc()
|
||||
vide.step(0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue