runtime (gc): scan callee-saved registers while marking stack

This commit is contained in:
Jaden Weiss
2020-04-02 08:22:17 -04:00
committed by Ron Evans
parent cbaa58a2d9
commit 9f8715c143
8 changed files with 152 additions and 3 deletions
+6
View File
@@ -72,3 +72,9 @@ func start(fn uintptr, args unsafe.Pointer) {
t.state.initialize(fn, args)
runqueuePushBack(t)
}
// OnSystemStack returns whether the caller is running on the system stack.
func OnSystemStack() bool {
// If there is not an active goroutine, then this must be running on the system stack.
return Current() == nil
}