1
0
mirror of https://github.com/golang/go synced 2024-11-19 03:44:40 -07:00

fix GC fractional mode for clear description

This commit is contained in:
zhengjianxun 2021-02-23 11:11:21 +08:00
parent dae95b9407
commit 5910e76324

View File

@ -302,8 +302,8 @@ const (
// gcMarkWorkerFractionalMode indicates that a P is currently
// running the "fractional" mark worker. The fractional worker
// is necessary when GOMAXPROCS*gcBackgroundUtilization is not
// an integer and the utilization too far away from the
// gcBackgroundUtilization when round the number.
// an integer and using only dedicated workers would result in
// utilization too far from the target of gcBackgroundUtilization.
// The fractional worker should run until it is preempted and
// will be scheduled to pick up the fractional part of
// GOMAXPROCS*gcBackgroundUtilization.