Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
runtime: Fix panic if newstack at runtime.acquireLockRank
The function named `acquireLockRank` at `src/runtime/lockrank_on.go` with `go:nosplit`, but at `src/runtime/lockrank_off.go` without `go:nosplit`. GOEXPERIMENT="" in default, process will panic if newstack at runtime.acquireLockRank with `gcflags="all=-N -l"`. Similarly, function `lockWithRank`, `unlockWithRank`, `releaseLockRank` and `lockWithRankMayAcquire`. Fixes golang#40843
- Loading branch information