]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/runtime/lockrank_on.go
runtime: add execution tracer v2 behind GOEXPERIMENT=exectracer2
[gostls13.git] / src / runtime / lockrank_on.go
index bf530eeb5bcf101c292263623f4fd5aa28464119..b1d99997947ae4443e5542dab471f5514a3ff2a3 100644 (file)
@@ -213,7 +213,9 @@ func releaseLockRank(rank lockRank) {
        })
 }
 
-// See comment on lockWithRank regarding stack splitting.
+// nosplit because it may be called from nosplit contexts.
+//
+//go:nosplit
 func lockWithRankMayAcquire(l *mutex, rank lockRank) {
        gp := getg()
        if gp.m.locksHeldLen == 0 {