mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-07 20:43:40 +00:00
runtime: fix GC to take goroutines into account
This fix is needed because with the new task-based scheduler, the current stack pointer may not be on the system stack.
This commit is contained in:
committed by
Ron Evans
parent
db4de46d88
commit
6917faabf5
@@ -9,5 +9,6 @@ package runtime
|
||||
// the linker) and getting the current stack pointer from a register. Also, it
|
||||
// assumes a descending stack. Thus, it is not very portable.
|
||||
func markStack() {
|
||||
markRoots(getCurrentStackPointer(), stackTop)
|
||||
// Mark system stack.
|
||||
markRoots(getSystemStackPointer(), stackTop)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user