diff options
author | Araq <rumpf_a@web.de> | 2019-11-25 15:29:41 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-11-26 16:04:28 +0100 |
commit | 72237e2bcfc371d917e4e14b22a3c447289ea39f (patch) | |
tree | 25922b2b6dc02898657ec9d6399b6c7938e8eb92 /lib/core/runtime_v2.nim | |
parent | 879801c63980287070f64d94e4c4f7aeb28cb2f4 (diff) | |
download | Nim-72237e2bcfc371d917e4e14b22a3c447289ea39f.tar.gz |
ARC: ported the GC tests over to --gc:arc
Diffstat (limited to 'lib/core/runtime_v2.nim')
-rw-r--r-- | lib/core/runtime_v2.nim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/core/runtime_v2.nim b/lib/core/runtime_v2.nim index 3dd4a77c6..d566a4c69 100644 --- a/lib/core/runtime_v2.nim +++ b/lib/core/runtime_v2.nim @@ -135,6 +135,18 @@ proc GC_ref*[T](x: ref T) = ## New runtime only supports this operation for 'ref T'. if x != nil: nimIncRef(cast[pointer](x)) +template GC_fullCollect* = + ## Forces a full garbage collection pass. With ``--gc:arc`` a nop. + discard + +template setupForeignThreadGc* = + ## With ``--gc:arc`` a nop. + discard + +template tearDownForeignThreadGc* = + ## With ``--gc:arc`` a nop. + discard + proc isObj(obj: PNimType, subclass: cstring): bool {.compilerRtl, inl.} = proc strstr(s, sub: cstring): cstring {.header: "<string.h>", importc.} |