Skip to content

runtime: Memstats.LastGC wrong in 1.3beta1 on linux amd64 #7852

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
gopherbot opened this issue Apr 23, 2014 · 4 comments
Closed

runtime: Memstats.LastGC wrong in 1.3beta1 on linux amd64 #7852

gopherbot opened this issue Apr 23, 2014 · 4 comments
Milestone

Comments

@gopherbot
Copy link
Contributor

by adam@fastly.com:

Memstats.LastGC is documented as meaning "last run in absolute time (ns)",
which until go1.2.1 meant the number of nanoseconds since the unix epoch. This is no
longer than case in 1.3beta1 on at least linux amd64.


Test code:
http://play.golang.org/p/gQvmu7MI1e


What happened?
version=devel +f8b50ad4cac4 Mon Apr 21 17:00:27 2014 -0700 +
LastGC=77684105349304
when=1970-01-01 13:34:44.105349304 -0800 PST
since=388393h58m40.518486936s


What should have happened instead?
version=go1.2.1
LastGC=1398296007760207386
when=2014-04-23 16:33:27.760207386 -0700 PDT
since=18.718us


Please provide any additional information below.

Incorrect behavior observed with go1.3beta1.linux-amd64.tar.gz on ubuntu 10.04 and
12.04. go1.3beta1.darwin-amd64-osx10.8.tar.gz on mac os 10.9.2 works as expected.
@ianlancetaylor
Copy link
Member

Comment 1:

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

@dvyukov
Copy link
Member

dvyukov commented Apr 24, 2014

Comment 2:

I am on it.

Owner changed to @dvyukov.

Status changed to Started.

@gopherbot
Copy link
Contributor Author

Comment 3:

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

@dvyukov
Copy link
Member

dvyukov commented May 2, 2014

Comment 4:

This issue was closed by revision 350a8fc.

Status changed to Fixed.

@rsc rsc added this to the Go1.3 milestone Apr 14, 2015
@rsc rsc removed the release-go1.3 label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 2016
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

4 participants