Expose GC_setStackBottom (#7885)
This commit is contained in:
parent
4a88c245d3
commit
395b7506cf
5 changed files with 17 additions and 13 deletions
|
|
@ -200,7 +200,7 @@ when declared(threadType):
|
|||
if threadType == ThreadType.None:
|
||||
initAllocator()
|
||||
var stackTop {.volatile.}: pointer
|
||||
setStackBottom(addr(stackTop))
|
||||
nimGC_setStackBottom(addr(stackTop))
|
||||
initGC()
|
||||
threadType = ThreadType.ForeignThread
|
||||
|
||||
|
|
@ -257,7 +257,7 @@ when nimCoroutines:
|
|||
gch.activeStack.setPosition(addr(sp))
|
||||
|
||||
when not defined(useNimRtl):
|
||||
proc setStackBottom(theStackBottom: pointer) =
|
||||
proc nimGC_setStackBottom(theStackBottom: pointer) =
|
||||
# Initializes main stack of the thread.
|
||||
when nimCoroutines:
|
||||
if gch.stack.next == nil:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue