Commit be39a429 authored by Austin Clements's avatar Austin Clements

runtime: fix typos in comments

Change-Id: I66f7937b22bb6e05c3f2f0f2a057151020ad9699
Reviewed-on: https://go-review.googlesource.com/13049Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
Reviewed-by: default avatarRuss Cox <rsc@golang.org>
parent e3870aa6
...@@ -498,7 +498,7 @@ func (c *gcControllerState) endCycle() { ...@@ -498,7 +498,7 @@ func (c *gcControllerState) endCycle() {
// Compute next cycle trigger ratio. First, this computes the // Compute next cycle trigger ratio. First, this computes the
// "error" for this cycle; that is, how far off the trigger // "error" for this cycle; that is, how far off the trigger
// was from what it should have been, accounting for both heap // was from what it should have been, accounting for both heap
// growth and GC CPU utilization. We computing the actual heap // growth and GC CPU utilization. We compute the actual heap
// growth during this cycle and scale that by how far off from // growth during this cycle and scale that by how far off from
// the goal CPU utilization we were (to estimate the heap // the goal CPU utilization we were (to estimate the heap
// growth if we had the desired CPU utilization). The // growth if we had the desired CPU utilization). The
...@@ -1475,7 +1475,7 @@ func gcMark(start_time int64) { ...@@ -1475,7 +1475,7 @@ func gcMark(start_time int64) {
} else { } else {
// This can happen if most of the allocation during // This can happen if most of the allocation during
// the cycle never became reachable from the heap. // the cycle never became reachable from the heap.
// Just set the reachable heap appropriation to 0 and // Just set the reachable heap approximation to 0 and
// let the heapminimum kick in below. // let the heapminimum kick in below.
memstats.heap_reachable = 0 memstats.heap_reachable = 0
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment