From 72237e2bcfc371d917e4e14b22a3c447289ea39f Mon Sep 17 00:00:00 2001 From: Araq Date: Mon, 25 Nov 2019 15:29:41 +0100 Subject: ARC: ported the GC tests over to --gc:arc --- lib/core/runtime_v2.nim | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lib/core/runtime_v2.nim') 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: "", importc.} -- cgit 1.4.1-2-gfad0