Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime: GOGC=0 should override heap minimum #10681

Closed
rsc opened this issue May 4, 2015 · 2 comments
Closed

runtime: GOGC=0 should override heap minimum #10681

rsc opened this issue May 4, 2015 · 2 comments
Milestone

Comments

@rsc
Copy link
Contributor

rsc commented May 4, 2015

GOGC=0 means basically GC after every allocation. It's very useful for debugging. It is effectively disabled for small heaps due to the heapminimum (4MB). We should override the heapminimum when GOGC=0 - you only set that when you really want lots of GCs.

@RLH @aclements

@rsc rsc added this to the Go1.5 milestone May 4, 2015
@RLH
Copy link
Contributor

RLH commented May 5, 2015

This is going to be fixed by setting minimum heap size to GOGC/100 * 4Mbytes.

@gopherbot
Copy link
Contributor

CL https://golang.org/cl/9814 mentions this issue.

@RLH RLH closed this as completed in b6e178e May 7, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants