mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-24 16:25:25 +00:00
This commit is contained in:
@@ -1909,9 +1909,8 @@ include "system/gc_interface"
|
||||
const NimStackTrace = compileOption("stacktrace")
|
||||
|
||||
template coroutinesSupportedPlatform(): bool =
|
||||
when defined(sparc) or defined(ELATE) or compileOption("gc", "v2") or
|
||||
defined(boehmgc) or defined(gogc) or defined(nogc) or defined(gcRegions) or
|
||||
defined(gcMarkAndSweep):
|
||||
when defined(sparc) or defined(ELATE) or defined(boehmgc) or defined(gogc) or
|
||||
defined(nogc) or defined(gcRegions) or defined(gcMarkAndSweep):
|
||||
false
|
||||
else:
|
||||
true
|
||||
|
||||
@@ -7,6 +7,9 @@
|
||||
# distribution, for details about the copyright.
|
||||
#
|
||||
|
||||
# xxx deadcode, consider removing unless something could be reused.
|
||||
|
||||
|
||||
# Garbage Collector
|
||||
#
|
||||
# The basic algorithm is an incremental mark
|
||||
|
||||
@@ -68,9 +68,7 @@ else:
|
||||
include "system/cellsets"
|
||||
when not leakDetector and not useCellIds and not defined(nimV2):
|
||||
sysAssert(sizeof(Cell) == sizeof(FreeCell), "sizeof FreeCell")
|
||||
when compileOption("gc", "v2"):
|
||||
include "system/gc2"
|
||||
elif defined(gcRegions):
|
||||
when defined(gcRegions):
|
||||
# XXX due to bootstrapping reasons, we cannot use compileOption("gc", "stack") here
|
||||
include "system/gc_regions"
|
||||
elif defined(nimV2) or usesDestructors:
|
||||
|
||||
@@ -304,7 +304,7 @@ proc setLengthSeq(seq: PGenericSeq, elemSize, elemAlign, newLen: int): PGenericS
|
||||
when not defined(boehmGC) and not defined(nogc) and
|
||||
not defined(gcMarkAndSweep) and not defined(gogc) and
|
||||
not defined(gcRegions):
|
||||
when false: # compileOption("gc", "v2"):
|
||||
when false: # deadcode: was used by `compileOption("gc", "v2")`
|
||||
for i in newLen..result.len-1:
|
||||
let len0 = gch.tempStack.len
|
||||
forAllChildrenAux(dataPointer(result, elemAlign, elemSize, i),
|
||||
|
||||
Reference in New Issue
Block a user