]> Cypherpunks repositories - gostls13.git/commit
runtime: separate scavenged spans
authorMichael Anthony Knyszek <mknyszek@google.com>
Tue, 2 Oct 2018 21:39:20 +0000 (21:39 +0000)
committerMichael Knyszek <mknyszek@google.com>
Tue, 30 Oct 2018 15:27:51 +0000 (15:27 +0000)
commitb46bf0240c0663222f837c78644fe90da932d852
treeaea940afd4c2b66dbcb6ba92904d9330ef0ee4cc
parent239341f3b6b5c921c2352ce8267d74948476d8fa
runtime: separate scavenged spans

This change adds a new treap to mheap which contains scavenged (i.e.
its physical pages were returned to the OS) spans.

As of this change, spans may no longer be partially scavenged.

For #14045.

Change-Id: I0d428a255c6d3f710b9214b378f841b997df0993
Reviewed-on: https://go-review.googlesource.com/c/139298
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/mgclarge.go
src/runtime/mheap.go
src/runtime/mstats.go