1
0
mirror of https://github.com/golang/go synced 2024-11-22 04:34:39 -07:00

runtime/proc.go: fix wrong name in comment

Change-Id: Ic8bed3d5a59309671f96bbe07c10e1ba2e16044a
This commit is contained in:
barry 2022-12-02 19:14:25 +08:00
parent 6a70292d1c
commit 7e2b258a3e

View File

@ -962,7 +962,7 @@ func casfrom_Gscanstatus(gp *g, oldval, newval uint32) {
}
// This will return false if the gp is not in the expected status and the cas fails.
// This acts like a lock acquire while the casfromgstatus acts like a lock release.
// This acts like a lock acquire while the casfrom_Gscanstatus acts like a lock release.
func castogscanstatus(gp *g, oldval, newval uint32) bool {
switch oldval {
case _Grunnable,