mirror of
https://github.com/lua/lua
synced 2026-09-27 00:28:25 +03:00
GC test was not restarting collector after pause
This commit is contained in:
parent
aaf3533653
commit
97ef8e7bd4
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue