diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-01-21 21:06:31 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-01-21 21:06:31 +0100 |
commit | 8c98277d5ae00aa3eb20796b5a271d6bc5d414ea (patch) | |
tree | d5e2082dea461dbbce4727e383a5f08fd9acc530 /lib | |
parent | 5f603144b2f0050e44b5e24a21772647f6112536 (diff) | |
download | Nim-8c98277d5ae00aa3eb20796b5a271d6bc5d414ea.tar.gz |
M&S GC: minor code cleanup
Diffstat (limited to 'lib')
-rw-r--r-- | lib/system/gc_ms.nim | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/system/gc_ms.nim b/lib/system/gc_ms.nim index 34d16a719..6f28601d0 100644 --- a/lib/system/gc_ms.nim +++ b/lib/system/gc_ms.nim @@ -347,12 +347,6 @@ proc growObj(old: pointer, newsize: int, gch: var GcHeap): pointer = zeroMem(cast[pointer](cast[ByteAddress](res)+% oldsize +% sizeof(Cell)), newsize-oldsize) sysAssert((cast[ByteAddress](res) and (MemAlign-1)) == 0, "growObj: 3") - when false: - # this is wrong since seqs can be shared via 'shallow': - when withBitvectors: excl(gch.allocated, ol) - when reallyDealloc: rawDealloc(gch.region, ol) - else: - zeroMem(ol, sizeof(Cell)) when withBitvectors: incl(gch.allocated, res) when useCellIds: inc gch.idGenerator |