Skip to content

Commit

Permalink
fix again.
Browse files Browse the repository at this point in the history
  • Loading branch information
doujiang24 committed Jun 23, 2022
1 parent 4447bd5 commit bed07ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/proc.go
Original file line number Diff line number Diff line change
Expand Up @@ -3898,7 +3898,7 @@ func exitsyscallfast(oldp *p) bool {
func exitsyscallfast_reacquired() {
_g_ := getg()
// there is no oldp when entering go from c thread at the first level.
if _g_.m.isextra && _g_.m.cgolevel != 0 {
if _g_.m.isextra && _g_.m.cgolevel == 0 {
panic("oldp should not existing")
}
if _g_.m.syscalltick != _g_.m.p.ptr().syscalltick {
Expand Down

0 comments on commit bed07ae

Please sign in to comment.