]> Cypherpunks repositories - gostls13.git/commit
runtime: add testing framework and basic tests for GC pacer
authorMichael Knyszek <mknyszek@google.com>
Fri, 1 Oct 2021 19:11:51 +0000 (15:11 -0400)
committerMichael Knyszek <mknyszek@google.com>
Fri, 29 Oct 2021 19:51:20 +0000 (19:51 +0000)
commit994049a9ad3d4230d0835ce36616a34a466f6718
tree7a247688342c3274fbe8d0046edbcd825eb9dd6d
parent5ec139fa78ac6ba3f0f715b6aa9235d36346a4a4
runtime: add testing framework and basic tests for GC pacer

This change creates a formal exported interface for the GC pacer and
creates tests for it that simulate some series of GC cycles. The tests
are completely driven by the real pacer implementation, except for
assists, which are idealized (though revise is called repeatedly).

For #44167.

Change-Id: I0112242b07e7702595ca71001d781ad6c1fddd2d
Reviewed-on: https://go-review.googlesource.com/c/go/+/353354
Trust: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/runtime/export_test.go
src/runtime/mgcpacer_test.go [new file with mode: 0644]