aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/runtime/ehooks_test.go4
-rw-r--r--src/runtime/os3_solaris.go1
-rw-r--r--src/runtime/os_aix.go1
-rw-r--r--src/runtime/os_darwin.go1
-rw-r--r--src/runtime/os_dragonfly.go1
-rw-r--r--src/runtime/os_linux.go1
-rw-r--r--src/runtime/os_netbsd.go1
-rw-r--r--src/runtime/os_openbsd.go1
-rw-r--r--src/runtime/os_windows.go1
9 files changed, 10 insertions, 2 deletions
diff --git a/src/runtime/ehooks_test.go b/src/runtime/ehooks_test.go
index c7f51740fb..380d709876 100644
--- a/src/runtime/ehooks_test.go
+++ b/src/runtime/ehooks_test.go
@@ -63,12 +63,12 @@ func TestExitHooks(t *testing.T) {
outs = strings.TrimSpace(outs)
if s.expected != "" && s.expected != outs {
t.Fatalf("failed %s: wanted %q\noutput:\n%s",
- s.mode, s.expected, outs)
+ s.mode, s.expected, outs)
}
for _, need := range s.musthave {
if !strings.Contains(outs, need) {
t.Fatalf("failed mode %s: output does not contain %q\noutput:\n%s",
- s.mode, need, outs)
+ s.mode, need, outs)
}
}
if s.expected == "" && s.musthave == nil && outs != "" {
diff --git a/src/runtime/os3_solaris.go b/src/runtime/os3_solaris.go
index 116995e5f6..3197c66537 100644
--- a/src/runtime/os3_solaris.go
+++ b/src/runtime/os3_solaris.go
@@ -238,6 +238,7 @@ func unminit() {
// 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) {
}
diff --git a/src/runtime/os_aix.go b/src/runtime/os_aix.go
index 3847b7671a..9d63c4d39d 100644
--- a/src/runtime/os_aix.go
+++ b/src/runtime/os_aix.go
@@ -194,6 +194,7 @@ func unminit() {
// 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) {
}
diff --git a/src/runtime/os_darwin.go b/src/runtime/os_darwin.go
index 5aef34ff8f..0c7144e9d0 100644
--- a/src/runtime/os_darwin.go
+++ b/src/runtime/os_darwin.go
@@ -348,6 +348,7 @@ func unminit() {
// 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) {
}
diff --git a/src/runtime/os_dragonfly.go b/src/runtime/os_dragonfly.go
index e22fd9b42f..fbbee64fd3 100644
--- a/src/runtime/os_dragonfly.go
+++ b/src/runtime/os_dragonfly.go
@@ -220,6 +220,7 @@ func unminit() {
// 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) {
}
diff --git a/src/runtime/os_linux.go b/src/runtime/os_linux.go
index 54f98ef4f8..fd560ddf5a 100644
--- a/src/runtime/os_linux.go
+++ b/src/runtime/os_linux.go
@@ -417,6 +417,7 @@ func unminit() {
// 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) {
}
diff --git a/src/runtime/os_netbsd.go b/src/runtime/os_netbsd.go
index 342ede9c53..10b14a8718 100644
--- a/src/runtime/os_netbsd.go
+++ b/src/runtime/os_netbsd.go
@@ -324,6 +324,7 @@ func unminit() {
// 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) {
}
diff --git a/src/runtime/os_openbsd.go b/src/runtime/os_openbsd.go
index 02846851d6..7e93c7a38d 100644
--- a/src/runtime/os_openbsd.go
+++ b/src/runtime/os_openbsd.go
@@ -186,6 +186,7 @@ func unminit() {
// 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) {
}
diff --git a/src/runtime/os_windows.go b/src/runtime/os_windows.go
index 8f77cd50f8..04752f2603 100644
--- a/src/runtime/os_windows.go
+++ b/src/runtime/os_windows.go
@@ -909,6 +909,7 @@ func unminit() {
// 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
//go:nosplit
func mdestroy(mp *m) {