mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: remove background GC goroutine and mark barriers
These are now unused. Updates #11970. Change-Id: I43e5c4e5bcda9581bacc63364f96bb4855ab779f Reviewed-on: https://go-review.googlesource.com/16393 Reviewed-by: Rick Hudson <rlh@golang.org> Run-TryBot: Austin Clements <austin@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
bbf2da00fc
commit
d5ba582166
3 changed files with 1 additions and 111 deletions
|
|
@ -3366,7 +3366,7 @@ func sysmon() {
|
|||
}
|
||||
// check if we need to force a GC
|
||||
lastgc := int64(atomicload64(&memstats.last_gc))
|
||||
if lastgc != 0 && unixnow-lastgc > forcegcperiod && atomicload(&forcegc.idle) != 0 && atomicloaduint(&bggc.working) == 0 {
|
||||
if lastgc != 0 && unixnow-lastgc > forcegcperiod && atomicload(&forcegc.idle) != 0 {
|
||||
lock(&forcegc.lock)
|
||||
forcegc.idle = 0
|
||||
forcegc.g.schedlink = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue