diff options
Diffstat (limited to 'src/runtime/os_openbsd.go')
| -rw-r--r-- | src/runtime/os_openbsd.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/runtime/os_openbsd.go b/src/runtime/os_openbsd.go index 574bfa8b17..4ce4c3c58d 100644 --- a/src/runtime/os_openbsd.go +++ b/src/runtime/os_openbsd.go @@ -182,8 +182,11 @@ func unminit() { getg().m.procid = 0 } -// Called from exitm, but not from drop, to undo the effect of thread-owned +// Called from mexit, but not from dropm, to undo the effect of thread-owned // resources in minit, semacreate, or elsewhere. Do not take locks after calling this. +// +// This always runs without a P, so //go:nowritebarrierrec is required. +//go:nowritebarrierrec func mdestroy(mp *m) { } |
