diff options
Diffstat (limited to 'lib/system/threads.nim')
-rw-r--r-- | lib/system/threads.nim | 2 |
1 files changed, 1 insertions, 1 deletions
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 |