WIP: --gc:regions instead of --gc:stack
This commit is contained in:
parent
838be26f53
commit
6b3af6a5d7
8 changed files with 101 additions and 190 deletions
|
|
@ -396,7 +396,7 @@ template afterThreadRuns() =
|
|||
for i in countdown(threadDestructionHandlers.len-1, 0):
|
||||
threadDestructionHandlers[i]()
|
||||
|
||||
when not defined(boehmgc) and not hasSharedHeap and not defined(gogc) and not defined(gcstack):
|
||||
when not defined(boehmgc) and not hasSharedHeap and not defined(gogc) and not defined(gcRegions):
|
||||
proc deallocOsPages()
|
||||
|
||||
when defined(boehmgc):
|
||||
|
|
@ -434,7 +434,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(gcstack):
|
||||
elif not defined(nogc) and not defined(gogc) and not defined(gcRegions):
|
||||
var p {.volatile.}: proc(a: ptr Thread[TArg]) {.nimcall.} =
|
||||
threadProcWrapDispatch[TArg]
|
||||
when not hasSharedHeap:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue