From: Tobias Klauser Date: Fri, 11 Jul 2025 20:51:46 +0000 (+0200) Subject: runtime: gofmt after CL 643897 and CL 662455 X-Git-Tag: go1.25rc3~5^2~29 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=6ebb5f56d9;p=gostls13.git runtime: gofmt after CL 643897 and CL 662455 Change-Id: I3103325ebe29509c00b129a317b5708aece575a0 Reviewed-on: https://go-review.googlesource.com/c/go/+/687715 Reviewed-by: Michael Pratt Reviewed-by: Carlos Amedee LUCI-TryBot-Result: Go LUCI Auto-Submit: Tobias Klauser --- 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) {