diff options
Diffstat (limited to '')
-rw-r--r-- | testes/gc.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testes/gc.lua b/testes/gc.lua index 3f8143b1..09bfe09a 100644 --- a/testes/gc.lua +++ b/testes/gc.lua | |||
@@ -560,8 +560,8 @@ if T then -- tests for weird cases collecting upvalues | |||
560 | -- create coroutine in a weak table, so it will never be marked | 560 | -- create coroutine in a weak table, so it will never be marked |
561 | t.co = coroutine.wrap(foo) | 561 | t.co = coroutine.wrap(foo) |
562 | local f = t.co() -- create function to access local 'a' | 562 | local f = t.co() -- create function to access local 'a' |
563 | T.gcstate("atomic") -- ensure all objects are traversed | 563 | T.gcstate("enteratomic") -- ensure all objects are traversed |
564 | assert(T.gcstate() == "atomic") | 564 | assert(T.gcstate() == "enteratomic") |
565 | assert(t.co() == 100) -- resume coroutine, creating new table for 'a' | 565 | assert(t.co() == 100) -- resume coroutine, creating new table for 'a' |
566 | assert(T.gccolor(t.co) == "white") -- thread was not traversed | 566 | assert(T.gccolor(t.co) == "white") -- thread was not traversed |
567 | T.gcstate("pause") -- collect thread, but should mark 'a' before that | 567 | T.gcstate("pause") -- collect thread, but should mark 'a' before that |
@@ -574,7 +574,7 @@ if T then -- tests for weird cases collecting upvalues | |||
574 | collectgarbage() | 574 | collectgarbage() |
575 | collectgarbage"stop" | 575 | collectgarbage"stop" |
576 | local a = {} -- avoid 'u' as first element in 'allgc' | 576 | local a = {} -- avoid 'u' as first element in 'allgc' |
577 | T.gcstate"atomic" | 577 | T.gcstate"enteratomic" |
578 | T.gcstate"sweepallgc" | 578 | T.gcstate"sweepallgc" |
579 | local x = {} | 579 | local x = {} |
580 | assert(T.gccolor(u) == "black") -- userdata is "old" (black) | 580 | assert(T.gccolor(u) == "black") -- userdata is "old" (black) |