diff options
Diffstat (limited to 'src/runtime/lockrank_on.go')
-rw-r--r-- | src/runtime/lockrank_on.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/runtime/lockrank_on.go b/src/runtime/lockrank_on.go index 88ac95a004..7d45debaca 100644 --- a/src/runtime/lockrank_on.go +++ b/src/runtime/lockrank_on.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build goexperiment.staticlockranking // +build goexperiment.staticlockranking package runtime @@ -219,7 +220,7 @@ func releaseLockRank(rank lockRank) { func lockWithRankMayAcquire(l *mutex, rank lockRank) { gp := getg() if gp.m.locksHeldLen == 0 { - // No possibilty of lock ordering problem if no other locks held + // No possibility of lock ordering problem if no other locks held return } |