Skip to content

runtime: GOGC env variable ignored #8562

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

Closed
cookieo9 opened this issue Aug 21, 2014 · 3 comments
Closed

runtime: GOGC env variable ignored #8562

cookieo9 opened this issue Aug 21, 2014 · 3 comments
Milestone

Comments

@cookieo9
Copy link
Contributor

At tip it looks like the GOGC environment variable doesn't have an effect on the
runtime.gcpercent value.

Example: http://play.golang.org/p/hHTrnFqcIZ

In 1.3.1 this code successfully prints out the new value of gcpercent if GOGC was set at
program start.

At tip, the code always returns 100 (the default).

Tested on darwin/amd64.
@ianlancetaylor
Copy link
Member

Comment 1:

Labels changed: added repo-main, release-go1.4.

@gopherbot
Copy link
Contributor

Comment 2:

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

@dvyukov
Copy link
Member

dvyukov commented Aug 21, 2014

Comment 3:

This issue was closed by revision 99e9bac.

Status changed to Fixed.

@rsc rsc added this to the Go1.4 milestone Apr 14, 2015
@rsc rsc removed the release-go1.4 label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 2016
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jun 25, 2018
Init GC later as it needs to read GOGC env var.
Fixes golang#8562.

LGTM=daniel.morsing, rsc
R=golang-codereviews, daniel.morsing, rsc
CC=golang-codereviews, khr, rlh
https://golang.org/cl/130990043
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jul 9, 2018
Init GC later as it needs to read GOGC env var.
Fixes golang#8562.

LGTM=daniel.morsing, rsc
R=golang-codereviews, daniel.morsing, rsc
CC=golang-codereviews, khr, rlh
https://golang.org/cl/130990043
This issue was closed.
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

5 participants