]> Cypherpunks repositories - gostls13.git/commit
runtime: add physical memory scavenging test
authorMichael Anthony Knyszek <mknyszek@google.com>
Mon, 1 Oct 2018 19:58:01 +0000 (19:58 +0000)
committerMichael Knyszek <mknyszek@google.com>
Tue, 30 Oct 2018 15:44:23 +0000 (15:44 +0000)
commit7836457ec3cc128efd9dd54197e8e5c25408c8b0
treef2e81908013abba9d877c3aeb50857bff206ecef
parentc803ffc67d0c90b24eb5a60a7d573eecc39e7753
runtime: add physical memory scavenging test

This change introduces a test to malloc_test which checks for overuse
of physical memory in the large object treap. Due to fragmentation,
there may be many pages of physical memory that are sitting unused in
large-object space.

For #14045.

Change-Id: I3722468f45063b11246dde6301c7ad02ae34be55
Reviewed-on: https://go-review.googlesource.com/c/138918
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/malloc_test.go
src/runtime/testdata/testprog/gc.go