internal/task: rename tinygo_pause to tinygo_task_exit

This is more descriptive: the call is to exit a task, not to pause it.
This also makes it more obvious that there's an optimization
opportunity: to free the stack explicitly after the goroutine returns
(or to keep it as a cache for the next stack allocation).
This commit is contained in:
Ayke van Laethem
2025-04-04 08:18:42 +02:00
committed by Ron Evans
parent 120d17c124
commit 95ee572b4d
12 changed files with 17 additions and 16 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ tinygo_startTask:
addl $4, %esp
// After return, exit this goroutine. This is a tail call.
jmp tinygo_pause
jmp tinygo_task_exit
.cfi_endproc
.global tinygo_swapTask