Skip to content

Commit

Permalink
fix: validate_invalid_gogc
Browse files Browse the repository at this point in the history
Signed-off-by: rfyiamcool <[email protected]>
  • Loading branch information
rfyiamcool committed Oct 8, 2023
1 parent 614d0af commit 4091d24
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions util/gctuner/tuner.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ func init() {
if err != nil {
return
}
if gogc <= 0 {
return
}
defaultGCPercent = uint32(gogc)
}

Expand Down

0 comments on commit 4091d24

Please sign in to comment.