aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/stubs2.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/stubs2.go')
-rw-r--r--src/runtime/stubs2.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/runtime/stubs2.go b/src/runtime/stubs2.go
index 9aa965454d..0d211e2db9 100644
--- a/src/runtime/stubs2.go
+++ b/src/runtime/stubs2.go
@@ -6,7 +6,10 @@
package runtime
-import "unsafe"
+import (
+ "runtime/internal/atomic"
+ "unsafe"
+)
// read calls the read system call.
// It returns a non-negative number of bytes written or a negative errno value.
@@ -33,8 +36,8 @@ func open(name *byte, mode, perm int32) int32
// return value is only set on linux to be used in osinit()
func madvise(addr unsafe.Pointer, n uintptr, flags int32) int32
-// exitThread terminates the current thread, writing *wait = 0 when
+// exitThread terminates the current thread, writing *wait = freeMStack when
// the stack is safe to reclaim.
//
//go:noescape
-func exitThread(wait *uint32)
+func exitThread(wait *atomic.Uint32)