]> Cypherpunks repositories - gostls13.git/commit
runtime: test that periodic GC works
authorAustin Clements <austin@google.com>
Wed, 5 Aug 2015 15:35:28 +0000 (11:35 -0400)
committerAustin Clements <austin@google.com>
Wed, 30 Sep 2015 19:24:07 +0000 (19:24 +0000)
commite01be84149b8189a58815ab75a86984e58d203e2
tree1252c51185f97d7745e6fbd4889ae9b3f5861ac7
parent829cc349c5990ecba52141bd978a99ee1571bc08
runtime: test that periodic GC works

We've broken periodic GC a few times without noticing because there's
no test for it, partly because you have to wait two minutes to see if
it happens. This exposes control of the periodic GC timeout to runtime
tests and adds a test that cranks it down to zero and sleeps for a bit
to make sure periodic GCs happen.

Change-Id: I3ec44e967e99f4eda752f85c329eebd18b87709e
Reviewed-on: https://go-review.googlesource.com/13169
Reviewed-by: Rick Hudson <rlh@golang.org>
Run-TryBot: Austin Clements <austin@google.com>
src/runtime/export_test.go
src/runtime/gc_test.go
src/runtime/proc1.go