]> Cypherpunks repositories - gostls13.git/commit
runtime: fix triggering of forced GC
authorDmitriy Vyukov <dvyukov@google.com>
Tue, 13 May 2014 05:53:03 +0000 (09:53 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Tue, 13 May 2014 05:53:03 +0000 (09:53 +0400)
commita12661329b81675267303602bf16493608ec7bed
tree79f2284e3efb265b5d1a789f333ef2bde4f08215
parent95e4181b0c7c7f9e6db672067847b1152eafa58c
runtime: fix triggering of forced GC
mstats.last_gc is unix time now, it is compared with abstract monotonic time.
On my machine GC is forced every 5 mins regardless of last_gc.

LGTM=rsc
R=golang-codereviews
CC=golang-codereviews, iant, rsc
https://golang.org/cl/91350045
src/pkg/runtime/mgc0.c
src/pkg/runtime/mheap.c
src/pkg/runtime/runtime.h
src/pkg/runtime/time.goc