aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/mcache.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/mcache.go')
-rw-r--r--src/runtime/mcache.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/runtime/mcache.go b/src/runtime/mcache.go
index 5bceb51ac9..7a7d33ccae 100644
--- a/src/runtime/mcache.go
+++ b/src/runtime/mcache.go
@@ -131,11 +131,7 @@ func (c *mcache) refill(spc spanClass) {
if s.sweepgen != mheap_.sweepgen+3 {
throw("bad sweepgen in refill")
}
- if go115NewMCentralImpl {
- mheap_.central[spc].mcentral.uncacheSpan(s)
- } else {
- atomic.Store(&s.sweepgen, mheap_.sweepgen)
- }
+ mheap_.central[spc].mcentral.uncacheSpan(s)
}
// Get a new cached span from the central lists.