]> Cypherpunks repositories - gostls13.git/commit
runtime: make debug.FreeOSMemory call runtime.GC()
authorAustin Clements <austin@google.com>
Fri, 24 Feb 2017 02:55:37 +0000 (21:55 -0500)
committerAustin Clements <austin@google.com>
Fri, 31 Mar 2017 01:15:10 +0000 (01:15 +0000)
commit786eb5b754780d649f5d85481096d268728d383f
treece86dd599e6bf03b7487c1a91c7e06addea30849
parent3d58498fdb047c442abafff4277159d6c3842e05
runtime: make debug.FreeOSMemory call runtime.GC()

Currently freeOSMemory calls gcStart directly, but we really just want
it to behave like runtime.GC() and then perform a scavenge, so make it
call runtime.GC() rather than gcStart.

For #18216.

Change-Id: I548ec007afc788e87d383532a443a10d92105937
Reviewed-on: https://go-review.googlesource.com/37518
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/mheap.go