{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/11612","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/11612/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/11612/comments","events_url":"https://api.github.com/repos/golang/go/issues/11612/events","html_url":"https://github.com/golang/go/issues/11612","id":93336362,"number":11612,"title":"cmd/compile: consumes huge amount of memory when compiling table driven test code","user":{"login":"rin01","id":9582469,"avatar_url":"https://avatars.githubusercontent.com/u/9582469?v=3","gravatar_id":"","url":"https://api.github.com/users/rin01","html_url":"https://github.com/rin01","followers_url":"https://api.github.com/users/rin01/followers","following_url":"https://api.github.com/users/rin01/following{/other_user}","gists_url":"https://api.github.com/users/rin01/gists{/gist_id}","starred_url":"https://api.github.com/users/rin01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rin01/subscriptions","organizations_url":"https://api.github.com/users/rin01/orgs","repos_url":"https://api.github.com/users/rin01/repos","events_url":"https://api.github.com/users/rin01/events{/privacy}","received_events_url":"https://api.github.com/users/rin01/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/38","html_url":"https://github.com/golang/go/milestones/Go1.8","labels_url":"https://api.github.com/repos/golang/go/milestones/38/labels","id":1709363,"number":38,"title":"Go1.8","description":"","creator":{"login":"griesemer","id":8528975,"avatar_url":"https://avatars.githubusercontent.com/u/8528975?v=3","gravatar_id":"","url":"https://api.github.com/users/griesemer","html_url":"https://github.com/griesemer","followers_url":"https://api.github.com/users/griesemer/followers","following_url":"https://api.github.com/users/griesemer/following{/other_user}","gists_url":"https://api.github.com/users/griesemer/gists{/gist_id}","starred_url":"https://api.github.com/users/griesemer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/griesemer/subscriptions","organizations_url":"https://api.github.com/users/griesemer/orgs","repos_url":"https://api.github.com/users/griesemer/repos","events_url":"https://api.github.com/users/griesemer/events{/privacy}","received_events_url":"https://api.github.com/users/griesemer/received_events","type":"User","site_admin":false},"open_issues":428,"closed_issues":41,"state":"open","created_at":"2016-04-15T16:30:23Z","updated_at":"2016-07-28T03:52:39Z","due_on":"2017-02-01T08:00:00Z","closed_at":null},"comments":11,"created_at":"2015-07-06T17:50:12Z","updated_at":"2016-07-28T08:08:47Z","closed_at":null,"body":"uname -a\r\n  Linux nico-Qiana-Xfce 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\n  go version go1.4.2 linux/amd64\r\n\r\nWhen I click on \"share\" button in Go playground to share the problematic code, it fails with \"server error: try again\" message.\r\nI imagine it is because the source code is too big (~8000 lines).\r\n\r\nBut you can find a small version here:\r\n\r\nhttp://play.golang.org/p/qpxcVGkzuk\r\n\r\nIt compiles quickly without any problem because it has only 500 lines in the \"samples\" table.\r\n\r\n**But if you copy-paste these sample lines to have 8000 of them in the \"samples\" table, 6g consumes more than 2.5 Gb and then, it is killed, or crashes Virtualbox.**\r\n\r\nThis problem is related to issue \"cmd/go: go build takes too long to compile table driven test code\":\r\n    https://github.com/golang/go/issues/8259\r\n\r\nBut this time, it is not the compile time which is the problem, but the memory consumption, which is really high.\r\nEven with 2.5 Gb of ram allocated to Virtualbox, 6g consumes all the available ram before being killed.\r\n\r\nWith go 1.3.2, I could compile, even if I should allocate at least 2.4 Gb of ram to Virtualbox.\r\n**But with go 1.4.2, the memory consumption has increased so much that I cannot compile the same code any more.**\r\n"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/235828254","html_url":"https://github.com/golang/go/issues/11612#issuecomment-235828254","issue_url":"https://api.github.com/repos/golang/go/issues/11612","id":235828254,"user":{"login":"UniQP","id":1321557,"avatar_url":"https://avatars.githubusercontent.com/u/1321557?v=3","gravatar_id":"","url":"https://api.github.com/users/UniQP","html_url":"https://github.com/UniQP","followers_url":"https://api.github.com/users/UniQP/followers","following_url":"https://api.github.com/users/UniQP/following{/other_user}","gists_url":"https://api.github.com/users/UniQP/gists{/gist_id}","starred_url":"https://api.github.com/users/UniQP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UniQP/subscriptions","organizations_url":"https://api.github.com/users/UniQP/orgs","repos_url":"https://api.github.com/users/UniQP/repos","events_url":"https://api.github.com/users/UniQP/events{/privacy}","received_events_url":"https://api.github.com/users/UniQP/received_events","type":"User","site_admin":false},"created_at":"2016-07-28T08:08:46Z","updated_at":"2016-07-28T08:08:46Z","body":"https://github.com/golang/go/blob/master/src/cmd/compile/internal/gc/ssa.go#L3793 says \"Phi optimization is a separate pass\". So it is performed after construction, right?"}}
{"actor":{"display_login":"UniQP"}}