mirror of
https://github.com/golang/go
synced 2024-11-16 21:44:52 -07:00
runtime: fix some comments
This commit is contained in:
parent
7fcc626b57
commit
e2b4e5326a
@ -690,7 +690,7 @@ func gcStart(trigger gcTrigger) {
|
||||
finishsweep_m()
|
||||
})
|
||||
|
||||
// clearpools before we start the GC. If we wait they memory will not be
|
||||
// clearpools before we start the GC. If we wait the memory will not be
|
||||
// reclaimed until the next GC cycle.
|
||||
clearpools()
|
||||
|
||||
@ -722,11 +722,11 @@ func gcStart(trigger gcTrigger) {
|
||||
// enabled because they must be enabled before
|
||||
// any non-leaf heap objects are marked. Since
|
||||
// allocations are blocked until assists can
|
||||
// happen, we want enable assists as early as
|
||||
// happen, we want to enable assists as early as
|
||||
// possible.
|
||||
setGCPhase(_GCmark)
|
||||
|
||||
gcBgMarkPrepare() // Must happen before assist enable.
|
||||
gcBgMarkPrepare() // Must happen before assists are enabled.
|
||||
gcMarkRootPrepare()
|
||||
|
||||
// Mark all active tinyalloc blocks. Since we're
|
||||
|
Loading…
Reference in New Issue
Block a user