{"action":"created","comment":{"url":"https://api.github.com/repos/scala/scala/pulls/comments/236157615","pull_request_review_id":178173031,"id":236157615,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNjE1NzYxNQ==","diff_hunk":"@@ -0,0 +1,12 @@\n+\n+object Test {\n+  def main(args: Array[String]): Unit = {\n+    test()\n+  }\n+  def test() = {\n+    val iter = Iterator(128*1024*1024, 128*1024*1024).flatMap(new Array[Byte](_))","path":"test/files/run/t11272.scala","position":7,"original_position":7,"commit_id":"75ceb799682acf616516b79d6910abadef7951da","original_commit_id":"75ceb799682acf616516b79d6910abadef7951da","user":{"login":"NthPortal","id":7505383,"node_id":"MDQ6VXNlcjc1MDUzODM=","avatar_url":"https://avatars0.githubusercontent.com/u/7505383?v=4","gravatar_id":"","url":"https://api.github.com/users/NthPortal","html_url":"https://github.com/NthPortal","followers_url":"https://api.github.com/users/NthPortal/followers","following_url":"https://api.github.com/users/NthPortal/following{/other_user}","gists_url":"https://api.github.com/users/NthPortal/gists{/gist_id}","starred_url":"https://api.github.com/users/NthPortal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NthPortal/subscriptions","organizations_url":"https://api.github.com/users/NthPortal/orgs","repos_url":"https://api.github.com/users/NthPortal/repos","events_url":"https://api.github.com/users/NthPortal/events{/privacy}","received_events_url":"https://api.github.com/users/NthPortal/received_events","type":"User","site_admin":false},"body":"Does this test actually do anything? Do we have any guarantees that it is running with sufficiently little memory that incorrect behaviour would actually cause the test to fail (presumably via OOM)?","created_at":"2018-11-26T08:29:47Z","updated_at":"2018-11-26T08:29:48Z","html_url":"https://github.com/scala/scala/pull/7459#discussion_r236157615","pull_request_url":"https://api.github.com/repos/scala/scala/pulls/7459","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/scala/scala/pulls/comments/236157615"},"html":{"href":"https://github.com/scala/scala/pull/7459#discussion_r236157615"},"pull_request":{"href":"https://api.github.com/repos/scala/scala/pulls/7459"}}},"pull_request":{"url":"https://api.github.com/repos/scala/scala/pulls/7459","id":233412531,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMzNDEyNTMx","html_url":"https://github.com/scala/scala/pull/7459","diff_url":"https://github.com/scala/scala/pull/7459.diff","patch_url":"https://github.com/scala/scala/pull/7459.patch","issue_url":"https://api.github.com/repos/scala/scala/issues/7459","number":7459,"state":"open","locked":false,"title":"[no-merge] Iterator.flatMap clears reference","user":{"login":"som-snytt","id":369425,"node_id":"MDQ6VXNlcjM2OTQyNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/369425?v=4","gravatar_id":"","url":"https://api.github.com/users/som-snytt","html_url":"https://github.com/som-snytt","followers_url":"https://api.github.com/users/som-snytt/followers","following_url":"https://api.github.com/users/som-snytt/following{/other_user}","gists_url":"https://api.github.com/users/som-snytt/gists{/gist_id}","starred_url":"https://api.github.com/users/som-snytt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/som-snytt/subscriptions","organizations_url":"https://api.github.com/users/som-snytt/orgs","repos_url":"https://api.github.com/users/som-snytt/repos","events_url":"https://api.github.com/users/som-snytt/events{/privacy}","received_events_url":"https://api.github.com/users/som-snytt/received_events","type":"User","site_admin":false},"body":"Clear the reference to the previous iterator\r\nbefore producing the next, so that any\r\nreferences held by the old iterator\r\nbecome collectable.\r\n\r\nFixes scala/bug#11272","created_at":"2018-11-26T00:33:44Z","updated_at":"2018-11-26T08:29:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4895607d45d2012185f1644d5a9fb6e2728b5647","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":{"url":"https://api.github.com/repos/scala/scala/milestones/77","html_url":"https://github.com/scala/scala/milestone/77","labels_url":"https://api.github.com/repos/scala/scala/milestones/77/labels","id":3824891,"node_id":"MDk6TWlsZXN0b25lMzgyNDg5MQ==","number":77,"title":"2.12.9","description":"Merge to 2.12.x. Note that 2.12 is in maintenance mode.","creator":{"login":"lrytz","id":119636,"node_id":"MDQ6VXNlcjExOTYzNg==","avatar_url":"https://avatars1.githubusercontent.com/u/119636?v=4","gravatar_id":"","url":"https://api.github.com/users/lrytz","html_url":"https://github.com/lrytz","followers_url":"https://api.github.com/users/lrytz/followers","following_url":"https://api.github.com/users/lrytz/following{/other_user}","gists_url":"https://api.github.com/users/lrytz/gists{/gist_id}","starred_url":"https://api.github.com/users/lrytz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lrytz/subscriptions","organizations_url":"https://api.github.com/users/lrytz/orgs","repos_url":"https://api.github.com/users/lrytz/repos","events_url":"https://api.github.com/users/lrytz/events{/privacy}","received_events_url":"https://api.github.com/users/lrytz/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":0,"state":"open","created_at":"2018-11-15T15:23:43Z","updated_at":"2018-11-26T00:33:45Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/scala/scala/pulls/7459/commits","review_comments_url":"https://api.github.com/repos/scala/scala/pulls/7459/comments","review_comment_url":"https://api.github.com/repos/scala/scala/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scala/scala/issues/7459/comments","statuses_url":"https://api.github.com/repos/scala/scala/statuses/75ceb799682acf616516b79d6910abadef7951da","head":{"label":"som-snytt:issue/11272-2.12","ref":"issue/11272-2.12","sha":"75ceb799682acf616516b79d6910abadef7951da","user":{"login":"som-snytt","id":369425,"node_id":"MDQ6VXNlcjM2OTQyNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/369425?v=4","gravatar_id":"","url":"https://api.github.com/users/som-snytt","html_url":"https://github.com/som-snytt","followers_url":"https://api.github.com/users/som-snytt/followers","following_url":"https://api.github.com/users/som-snytt/following{/other_user}","gists_url":"https://api.github.com/users/som-snytt/gists{/gist_id}","starred_url":"https://api.github.com/users/som-snytt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/som-snytt/subscriptions","organizations_url":"https://api.github.com/users/som-snytt/orgs","repos_url":"https://api.github.com/users/som-snytt/repos","events_url":"https://api.github.com/users/som-snytt/events{/privacy}","received_events_url":"https://api.github.com/users/som-snytt/received_events","type":"User","site_admin":false},"repo":{"id":3506616,"node_id":"MDEwOlJlcG9zaXRvcnkzNTA2NjE2","name":"scala","full_name":"som-snytt/scala","private":false,"owner":{"login":"som-snytt","id":369425,"node_id":"MDQ6VXNlcjM2OTQyNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/369425?v=4","gravatar_id":"","url":"https://api.github.com/users/som-snytt","html_url":"https://github.com/som-snytt","followers_url":"https://api.github.com/users/som-snytt/followers","following_url":"https://api.github.com/users/som-snytt/following{/other_user}","gists_url":"https://api.github.com/users/som-snytt/gists{/gist_id}","starred_url":"https://api.github.com/users/som-snytt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/som-snytt/subscriptions","organizations_url":"https://api.github.com/users/som-snytt/orgs","repos_url":"https://api.github.com/users/som-snytt/repos","events_url":"https://api.github.com/users/som-snytt/events{/privacy}","received_events_url":"https://api.github.com/users/som-snytt/received_events","type":"User","site_admin":false},"html_url":"https://github.com/som-snytt/scala","description":"The Scala programming language","fork":true,"url":"https://api.github.com/repos/som-snytt/scala","forks_url":"https://api.github.com/repos/som-snytt/scala/forks","keys_url":"https://api.github.com/repos/som-snytt/scala/keys{/key_id}","collaborators_url":"https://api.github.com/repos/som-snytt/scala/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/som-snytt/scala/teams","hooks_url":"https://api.github.com/repos/som-snytt/scala/hooks","issue_events_url":"https://api.github.com/repos/som-snytt/scala/issues/events{/number}","events_url":"https://api.github.com/repos/som-snytt/scala/events","assignees_url":"https://api.github.com/repos/som-snytt/scala/assignees{/user}","branches_url":"https://api.github.com/repos/som-snytt/scala/branches{/branch}","tags_url":"https://api.github.com/repos/som-snytt/scala/tags","blobs_url":"https://api.github.com/repos/som-snytt/scala/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/som-snytt/scala/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/som-snytt/scala/git/refs{/sha}","trees_url":"https://api.github.com/repos/som-snytt/scala/git/trees{/sha}","statuses_url":"https://api.github.com/repos/som-snytt/scala/statuses/{sha}","languages_url":"https://api.github.com/repos/som-snytt/scala/languages","stargazers_url":"https://api.github.com/repos/som-snytt/scala/stargazers","contributors_url":"https://api.github.com/repos/som-snytt/scala/contributors","subscribers_url":"https://api.github.com/repos/som-snytt/scala/subscribers","subscription_url":"https://api.github.com/repos/som-snytt/scala/subscription","commits_url":"https://api.github.com/repos/som-snytt/scala/commits{/sha}","git_commits_url":"https://api.github.com/repos/som-snytt/scala/git/commits{/sha}","comments_url":"https://api.github.com/repos/som-snytt/scala/comments{/number}","issue_comment_url":"https://api.github.com/repos/som-snytt/scala/issues/comments{/number}","contents_url":"https://api.github.com/repos/som-snytt/scala/contents/{+path}","compare_url":"https://api.github.com/repos/som-snytt/scala/compare/{base}...{head}","merges_url":"https://api.github.com/repos/som-snytt/scala/merges","archive_url":"https://api.github.com/repos/som-snytt/scala/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/som-snytt/scala/downloads","issues_url":"https://api.github.com/repos/som-snytt/scala/issues{/number}","pulls_url":"https://api.github.com/repos/som-snytt/scala/pulls{/number}","milestones_url":"https://api.github.com/repos/som-snytt/scala/milestones{/number}","notifications_url":"https://api.github.com/repos/som-snytt/scala/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/som-snytt/scala/labels{/name}","releases_url":"https://api.github.com/repos/som-snytt/scala/releases{/id}","deployments_url":"https://api.github.com/repos/som-snytt/scala/deployments","created_at":"2012-02-21T18:12:03Z","updated_at":"2018-08-10T17:20:20Z","pushed_at":"2018-11-26T01:07:05Z","git_url":"git://github.com/som-snytt/scala.git","ssh_url":"git@github.com:som-snytt/scala.git","clone_url":"https://github.com/som-snytt/scala.git","svn_url":"https://github.com/som-snytt/scala","homepage":"http://www.scala-lang.org/","size":109880,"stargazers_count":2,"watchers_count":2,"language":"Scala","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":1,"open_issues":2,"watchers":2,"default_branch":"2.13.x"}},"base":{"label":"scala:2.12.x","ref":"2.12.x","sha":"25c72158447ea4ff6069dd368351841e4ea0979c","user":{"login":"scala","id":57059,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU3MDU5","avatar_url":"https://avatars2.githubusercontent.com/u/57059?v=4","gravatar_id":"","url":"https://api.github.com/users/scala","html_url":"https://github.com/scala","followers_url":"https://api.github.com/users/scala/followers","following_url":"https://api.github.com/users/scala/following{/other_user}","gists_url":"https://api.github.com/users/scala/gists{/gist_id}","starred_url":"https://api.github.com/users/scala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scala/subscriptions","organizations_url":"https://api.github.com/users/scala/orgs","repos_url":"https://api.github.com/users/scala/repos","events_url":"https://api.github.com/users/scala/events{/privacy}","received_events_url":"https://api.github.com/users/scala/received_events","type":"Organization","site_admin":false},"repo":{"id":2888818,"node_id":"MDEwOlJlcG9zaXRvcnkyODg4ODE4","name":"scala","full_name":"scala/scala","private":false,"owner":{"login":"scala","id":57059,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU3MDU5","avatar_url":"https://avatars2.githubusercontent.com/u/57059?v=4","gravatar_id":"","url":"https://api.github.com/users/scala","html_url":"https://github.com/scala","followers_url":"https://api.github.com/users/scala/followers","following_url":"https://api.github.com/users/scala/following{/other_user}","gists_url":"https://api.github.com/users/scala/gists{/gist_id}","starred_url":"https://api.github.com/users/scala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scala/subscriptions","organizations_url":"https://api.github.com/users/scala/orgs","repos_url":"https://api.github.com/users/scala/repos","events_url":"https://api.github.com/users/scala/events{/privacy}","received_events_url":"https://api.github.com/users/scala/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/scala/scala","description":"The Scala programming language","fork":false,"url":"https://api.github.com/repos/scala/scala","forks_url":"https://api.github.com/repos/scala/scala/forks","keys_url":"https://api.github.com/repos/scala/scala/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scala/scala/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scala/scala/teams","hooks_url":"https://api.github.com/repos/scala/scala/hooks","issue_events_url":"https://api.github.com/repos/scala/scala/issues/events{/number}","events_url":"https://api.github.com/repos/scala/scala/events","assignees_url":"https://api.github.com/repos/scala/scala/assignees{/user}","branches_url":"https://api.github.com/repos/scala/scala/branches{/branch}","tags_url":"https://api.github.com/repos/scala/scala/tags","blobs_url":"https://api.github.com/repos/scala/scala/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scala/scala/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scala/scala/git/refs{/sha}","trees_url":"https://api.github.com/repos/scala/scala/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scala/scala/statuses/{sha}","languages_url":"https://api.github.com/repos/scala/scala/languages","stargazers_url":"https://api.github.com/repos/scala/scala/stargazers","contributors_url":"https://api.github.com/repos/scala/scala/contributors","subscribers_url":"https://api.github.com/repos/scala/scala/subscribers","subscription_url":"https://api.github.com/repos/scala/scala/subscription","commits_url":"https://api.github.com/repos/scala/scala/commits{/sha}","git_commits_url":"https://api.github.com/repos/scala/scala/git/commits{/sha}","comments_url":"https://api.github.com/repos/scala/scala/comments{/number}","issue_comment_url":"https://api.github.com/repos/scala/scala/issues/comments{/number}","contents_url":"https://api.github.com/repos/scala/scala/contents/{+path}","compare_url":"https://api.github.com/repos/scala/scala/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scala/scala/merges","archive_url":"https://api.github.com/repos/scala/scala/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scala/scala/downloads","issues_url":"https://api.github.com/repos/scala/scala/issues{/number}","pulls_url":"https://api.github.com/repos/scala/scala/pulls{/number}","milestones_url":"https://api.github.com/repos/scala/scala/milestones{/number}","notifications_url":"https://api.github.com/repos/scala/scala/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scala/scala/labels{/name}","releases_url":"https://api.github.com/repos/scala/scala/releases{/id}","deployments_url":"https://api.github.com/repos/scala/scala/deployments","created_at":"2011-12-01T05:02:34Z","updated_at":"2018-11-26T01:16:54Z","pushed_at":"2018-11-26T04:19:44Z","git_url":"git://github.com/scala/scala.git","ssh_url":"git@github.com:scala/scala.git","clone_url":"https://github.com/scala/scala.git","svn_url":"https://github.com/scala/scala","homepage":"http://www.scala-lang.org/","size":109056,"stargazers_count":10929,"watchers_count":10929,"language":"Scala","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":2584,"mirror_url":null,"archived":false,"open_issues_count":85,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":2584,"open_issues":85,"watchers":10929,"default_branch":"2.13.x"}},"_links":{"self":{"href":"https://api.github.com/repos/scala/scala/pulls/7459"},"html":{"href":"https://github.com/scala/scala/pull/7459"},"issue":{"href":"https://api.github.com/repos/scala/scala/issues/7459"},"comments":{"href":"https://api.github.com/repos/scala/scala/issues/7459/comments"},"review_comments":{"href":"https://api.github.com/repos/scala/scala/pulls/7459/comments"},"review_comment":{"href":"https://api.github.com/repos/scala/scala/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scala/scala/pulls/7459/commits"},"statuses":{"href":"https://api.github.com/repos/scala/scala/statuses/75ceb799682acf616516b79d6910abadef7951da"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"NthPortal"}}