mirror of
https://github.com/lua/lua.git
synced 2024-11-27 04:03:54 +08:00
GC test was not restarting collector after pause
This commit is contained in:
parent
aaf3533653
commit
97ef8e7bd4
@ -65,10 +65,11 @@ do print("steps")
|
||||
return i -- number of steps
|
||||
end
|
||||
|
||||
collectgarbage"stop"
|
||||
|
||||
if not _port then
|
||||
collectgarbage"stop"
|
||||
assert(dosteps(10) < dosteps(2))
|
||||
collectgarbage"restart"
|
||||
end
|
||||
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user