runtime: implement Goexit

This is needed for full support for the testing package
This commit is contained in:
Ayke van Laethem
2024-11-21 09:20:14 +01:00
committed by Ron Evans
parent 65b085a5d5
commit aed555d858
5 changed files with 53 additions and 14 deletions
+1 -6
View File
@@ -28,11 +28,6 @@ func scheduleLogChan(msg string, ch *channel, t *task.Task) {
}
// Goexit terminates the currently running goroutine. No other goroutines are affected.
//
// Unlike the main Go implementation, no deferred calls will be run.
//
//go:inline
func Goexit() {
// TODO: run deferred functions
deadlock()
panicOrGoexit(nil, panicGoexit)
}