runtime: fix freeOSMemory to free memory immediately
Currently freeOSMemory makes only marking phase of GC, but not sweeping phase.
So recently memory is not released after freeOSMemory.
Do both marking and sweeping during freeOSMemory.
Fixes issue 8019.
Hello golang-codereviews@googlegroups.com (cc: khr@golang.org, rsc@golang.org), I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
9 years, 11 months ago
(2014-05-18 07:43:13 UTC)
#1
*** Submitted as https://code.google.com/p/go/source/detail?r=80c5e57e2ec3 *** runtime: fix freeOSMemory to free memory immediately Currently freeOSMemory makes ...
9 years, 11 months ago
(2014-05-19 08:06:34 UTC)
#4
*** Submitted as https://code.google.com/p/go/source/detail?r=80c5e57e2ec3 ***
runtime: fix freeOSMemory to free memory immediately
Currently freeOSMemory makes only marking phase of GC, but not sweeping phase.
So recently memory is not released after freeOSMemory.
Do both marking and sweeping during freeOSMemory.
Fixes issue 8019.
LGTM=khr
R=golang-codereviews, khr
CC=golang-codereviews, rsc
https://codereview.appspot.com/97550043
Issue 97550043: code review 97550043: runtime: fix freeOSMemory to free memory immediately
(Closed)
Created 9 years, 11 months ago by dvyukov
Modified 9 years, 11 months ago
Reviewers: gobot
Base URL:
Comments: 2