runtime: refactor obtaining the system stack

The system stack is only needed when we're not on it. So we can directly
call task.SystemStack() without problems.

This also saves a tiny bit of binary size.
This commit is contained in:
Ayke van Laethem
2025-06-11 10:26:52 +02:00
committed by Ron Evans
parent 3a2188fc7b
commit 0c7c2926f9
5 changed files with 10 additions and 27 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ func markStack() {
if !task.OnSystemStack() {
// Mark system stack.
markRoots(getSystemStackPointer(), stackTop)
markRoots(task.SystemStack(), stackTop)
}
}