diff options
author | Araq <rumpf_a@web.de> | 2012-01-15 11:54:38 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-01-15 11:54:38 +0100 |
commit | 1d1752cac75fd0c607624df7ca40b7a8cd9f54ce (patch) | |
tree | e87ed20cff15a1f1cc3793c41b31c87aab1db01c /lib/system | |
parent | f58cc496725c65fe9d7ba85a0eab284255074416 (diff) | |
download | Nim-1d1752cac75fd0c607624df7ca40b7a8cd9f54ce.tar.gz |
removed nimKeepAlive as it's not necessary with interior pointer checking
Diffstat (limited to 'lib/system')
-rwxr-xr-x | lib/system/gc.nim | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/system/gc.nim b/lib/system/gc.nim index 262ca9971..1aae16f1a 100755 --- a/lib/system/gc.nim +++ b/lib/system/gc.nim @@ -34,8 +34,6 @@ const rcWhite = 0b010 # member of a garbage cycle rcPurple = 0b011 # possible root of a cycle rcZct = 0b100 # in ZCT - rcMarked = 0b101 # dummy write to keep C code generator from - # eliminating the root rcRed = 0b101 # Candidate cycle undergoing sigma-computation rcOrange = 0b110 # Candidate cycle awaiting epoch boundary rcShift = 3 # shift by rcShift to get the reference counter @@ -588,11 +586,6 @@ proc gcMark(gch: var TGcHeap, p: pointer) {.inline.} = add(gch.decStack, cell) sysAssert(allocInv(gch.region), "gcMark end") -proc nimKeepAlive(p: PGenericSeq) {.compilerRtl, noinline.} = - var c = usrToCell(p) - if isAllocatedPtr(gch.region, c): - c.refcount = c.refcount or rcMarked - proc markThreadStacks(gch: var TGcHeap) = when hasThreadSupport and hasSharedHeap: {.error: "not fully implemented".} |