summary refs log tree commit diff stats
path: root/tests/gc
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2020-04-27 11:57:26 +0200
committerGitHub <noreply@github.com>2020-04-27 11:57:26 +0200
commitdedb04fa9e2cd48452202b8d20499608c5523f0e (patch)
tree0e7f8003e641d0285bdf454533c74bb7553ecbf7 /tests/gc
parenteaedd0cb94866125d639133cfb5da50191106343 (diff)
downloadNim-dedb04fa9e2cd48452202b8d20499608c5523f0e.tar.gz
new implementations for --gc:orc (#14121)
* cycle collector: new implementation
* cycle collector: make self-adaptive based on its previous effectiveness
* cycle collector: added Lins's jump stack to improve traversal from 3*N to 2*N
* cycle collector: make tests green
* API extensions and bugfixes
* code cleanup and use --gc:orc for tasyncawait
Diffstat (limited to 'tests/gc')
-rw-r--r--tests/gc/thavlak.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/gc/thavlak.nim b/tests/gc/thavlak.nim
index 471b9891c..cfd860e25 100644
--- a/tests/gc/thavlak.nim
+++ b/tests/gc/thavlak.nim
@@ -394,7 +394,7 @@ proc run(self: var LoopTesterApp) =
   echo "Constructing CFG..."
   var n = 2
 
-  when not defined(gcOrc):
+  when true: # not defined(gcOrc):
     # currently cycle detection is so slow that we disable this part
     for parlooptrees in 1..10:
       discard self.cfg.createNode(n + 1)
@@ -437,4 +437,5 @@ proc main =
 let mem = getOccupiedMem()
 main()
 when defined(gcOrc):
+  GC_fullCollect()
   doAssert getOccupiedMem() == mem