We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70491a8 commit 3959d54Copy full SHA for 3959d54
src/runtime/lockrank_off.go
@@ -42,6 +42,9 @@ func releaseLockRankAndM(rank lockRank) {
42
releasem(getg().m)
43
}
44
45
+// This function may be called in nosplit context and thus must be nosplit.
46
+//
47
+//go:nosplit
48
func lockWithRankMayAcquire(l *mutex, rank lockRank) {
49
50
test/fixedbugs/issue68525.go
@@ -0,0 +1,13 @@
1
+// run -gcflags='all=-N -l'
2
+
3
+// Copyright 2024 The Go Authors. All rights reserved.
4
+// Use of this source code is governed by a BSD-style
5
+// license that can be found in the LICENSE file.
6
7
+package main
8
9
+import "os"
10
11
+func main() {
12
+ os.OpenFile(os.DevNull, os.O_WRONLY, 0)
13
+}
0 commit comments