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/
*** Submitted as https://code.google.com/p/go/source/detail?r=80c5e57e2ec3 *** runtime: fix freeOSMemory to free memory immediately Currently freeOSMemory makes ...
*** 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 10 years ago by dvyukov
Modified 10 years ago
Reviewers: gobot
Base URL:
Comments: 2