diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-12-22 14:57:43 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-12-22 14:57:43 -0300 |
| commit | e81f586001d767c8de9b760ae2e2c3b5da1542c6 (patch) | |
| tree | 26032fb57c824d62a4c1547159d58f5d5c223e96 /testes/gc.lua | |
| parent | e2cc179454c6aa6cde5f98954bd3783e0d5d53a3 (diff) | |
| download | lua-e81f586001d767c8de9b760ae2e2c3b5da1542c6.tar.gz lua-e81f586001d767c8de9b760ae2e2c3b5da1542c6.tar.bz2 lua-e81f586001d767c8de9b760ae2e2c3b5da1542c6.zip | |
Removed compatibility option LUA_COMPAT_GCPARAMS
The meaning of different GC parameters changed, so there is point in
supporting old values for them. The new code simply ignores the
parameters when changing the GC mode, so the incompatibility is small.
Diffstat (limited to 'testes/gc.lua')
| -rw-r--r-- | testes/gc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testes/gc.lua b/testes/gc.lua index 61b5da9c..8bacffa0 100644 --- a/testes/gc.lua +++ b/testes/gc.lua | |||
| @@ -504,7 +504,7 @@ end | |||
| 504 | do | 504 | do |
| 505 | collectgarbage() | 505 | collectgarbage() |
| 506 | collectgarbage"stop" | 506 | collectgarbage"stop" |
| 507 | collectgarbage("step", 0) -- steps should not unblock the collector | 507 | collectgarbage("step") -- steps should not unblock the collector |
| 508 | local x = gcinfo() | 508 | local x = gcinfo() |
| 509 | repeat | 509 | repeat |
| 510 | for i=1,1000 do _ENV.a = {} end -- no collection during the loop | 510 | for i=1,1000 do _ENV.a = {} end -- no collection during the loop |
