From 1746da2d9e3d802d990d9636d2f6887a4aeb5dc9 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Wed, 30 Oct 2019 16:15:17 +0100 Subject: --gc:destructors now means Nim uses pure refcounting (#12557) --- lib/system/threads.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/system/threads.nim') diff --git a/lib/system/threads.nim b/lib/system/threads.nim index ad1d82be2..b09ed0c6f 100644 --- a/lib/system/threads.nim +++ b/lib/system/threads.nim @@ -148,7 +148,7 @@ else: proc threadProcWrapStackFrame[TArg](thrd: ptr Thread[TArg]) = when defined(boehmgc): boehmGC_call_with_stack_base(threadProcWrapDispatch[TArg], thrd) - elif not defined(nogc) and not defined(gogc) and not defined(gcRegions) and not defined(gcDestructors): + elif not defined(nogc) and not defined(gogc) and not defined(gcRegions) and not usesDestructors: var p {.volatile.}: proc(a: ptr Thread[TArg]) {.nimcall, gcsafe.} = threadProcWrapDispatch[TArg] # init the GC for refc/markandsweep -- cgit 1.4.1-2-gfad0