diff options
author | Araq <rumpf_a@web.de> | 2013-12-29 03:19:10 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2013-12-29 03:19:10 +0100 |
commit | b731e6ef1c4f10b9ba544c0a66ea1066b3c471a8 (patch) | |
tree | 01be2fef561c998bdffad7c026809b967a2315b7 /lib/system | |
parent | 438703f59e4d226f6e83e78c4f549a381526c6c2 (diff) | |
download | Nim-b731e6ef1c4f10b9ba544c0a66ea1066b3c471a8.tar.gz |
case consistency: cs:partial bootstraps on windows
Diffstat (limited to 'lib/system')
-rw-r--r-- | lib/system/gc.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/system/gc.nim b/lib/system/gc.nim index 6d6be33d0..0fb9bb482 100644 --- a/lib/system/gc.nim +++ b/lib/system/gc.nim @@ -132,9 +132,9 @@ when BitsPerPage mod (sizeof(int)*8) != 0: template color(c): expr = c.refCount and colorMask template setColor(c, col) = when col == rcBlack: - c.refcount = c.refCount and not colorMask + c.refcount = c.refcount and not colorMask else: - c.refcount = c.refCount and not colorMask or col + c.refcount = c.refcount and not colorMask or col proc writeCell(msg: cstring, c: PCell) = var kind = -1 @@ -211,7 +211,7 @@ proc decRef(c: PCell) {.inline.} = proc incRef(c: PCell) {.inline.} = gcAssert(isAllocatedPtr(gch.region, c), "incRef: interiorPtr") - c.refcount = c.refCount +% rcIncrement + c.refcount = c.refcount +% rcIncrement # and not colorMask #writeCell("incRef", c) if canbeCycleRoot(c): @@ -582,7 +582,7 @@ proc markRoots(gch: var TGcHeap) = for s in elements(gch.cycleRoots): #writeCell("markRoot", s) inc tabSize - if s.color == rcPurple and s.refCount >=% rcIncrement: + if s.color == rcPurple and s.refcount >=% rcIncrement: markGray(s) else: excl(gch.cycleRoots, s) |