{"action":"created","comment":{"url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/pulls/comments/230207146","pull_request_review_id":170893694,"id":230207146,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMDIwNzE0Ng==","diff_hunk":"@@ -14,12 +14,13 @@ import kotlin.test.*\n \n @OpGroupConfigs(OpGroupConfig(name = \"consumer\", nonParallel = true))\n @Param(name = \"value\", gen = IntGen::class, conf = \"1:3\")\n-class LockFreeMPSCQueueLinearizabilityTest : TestBase() {\n-    private lateinit var q: LockFreeMPSCQueue<Int>\n+class LockFreeTaskQueueLinearizabilityTest : TestBase() {\n+    private var singleConsumer = false","path":"core/kotlinx-coroutines-core/test/internal/LockFreeTaskQueueLinearizabilityTest.kt","position":7,"original_position":7,"commit_id":"9512ab26fdd7ed1a9273c597e6f753204262178e","original_commit_id":"e64d9b706cb5180260e4d95fa3a990449163da51","user":{"login":"elizarov","id":478679,"node_id":"MDQ6VXNlcjQ3ODY3OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/478679?v=4","gravatar_id":"","url":"https://api.github.com/users/elizarov","html_url":"https://github.com/elizarov","followers_url":"https://api.github.com/users/elizarov/followers","following_url":"https://api.github.com/users/elizarov/following{/other_user}","gists_url":"https://api.github.com/users/elizarov/gists{/gist_id}","starred_url":"https://api.github.com/users/elizarov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elizarov/subscriptions","organizations_url":"https://api.github.com/users/elizarov/orgs","repos_url":"https://api.github.com/users/elizarov/repos","events_url":"https://api.github.com/users/elizarov/events{/privacy}","received_events_url":"https://api.github.com/users/elizarov/received_events","type":"User","site_admin":false},"body":"Uh-oh!","created_at":"2018-11-01T21:33:30Z","updated_at":"2018-11-01T21:33:30Z","html_url":"https://github.com/Kotlin/kotlinx.coroutines/pull/741#discussion_r230207146","pull_request_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/pulls/741","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/pulls/comments/230207146"},"html":{"href":"https://github.com/Kotlin/kotlinx.coroutines/pull/741#discussion_r230207146"},"pull_request":{"href":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/pulls/741"}},"in_reply_to_id":229987243},"pull_request":{"url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/pulls/741","id":224556553,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0NTU2NTUz","html_url":"https://github.com/Kotlin/kotlinx.coroutines/pull/741","diff_url":"https://github.com/Kotlin/kotlinx.coroutines/pull/741.diff","patch_url":"https://github.com/Kotlin/kotlinx.coroutines/pull/741.patch","issue_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/issues/741","number":741,"state":"open","locked":false,"title":"Use array-based queue for Scheduler.GlobalQueue & optimize Task","user":{"login":"elizarov","id":478679,"node_id":"MDQ6VXNlcjQ3ODY3OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/478679?v=4","gravatar_id":"","url":"https://api.github.com/users/elizarov","html_url":"https://github.com/elizarov","followers_url":"https://api.github.com/users/elizarov/followers","following_url":"https://api.github.com/users/elizarov/following{/other_user}","gists_url":"https://api.github.com/users/elizarov/gists{/gist_id}","starred_url":"https://api.github.com/users/elizarov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elizarov/subscriptions","organizations_url":"https://api.github.com/users/elizarov/orgs","repos_url":"https://api.github.com/users/elizarov/repos","events_url":"https://api.github.com/users/elizarov/events{/privacy}","received_events_url":"https://api.github.com/users/elizarov/received_events","type":"User","site_admin":false},"body":"* Task does not have to extend LockFreeMPMCQueueNode anymore.\r\n* Code is reused from MPSC Queue used in EventLoop (MC mode is added),\r\n  code there is less code overall.\r\n* So LockFreeMPSCQueue is renamed to LockFreeTaskQueue. This name is\r\n  appropriate due to its special relaxed (non-linearizable) consistency\r\n  guarantee that is still appropriate for task scheduling.\r\n* Avoid allocation of CoroutineScheduler task object\r\n* DispatchedContinuation and CancellableContinuationImpl have all\r\n  the necessarily field to be scheduled","created_at":"2018-10-21T17:34:07Z","updated_at":"2018-11-01T21:33:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e107b94a1b4f1f18eb08fad78ed93e8b00405966","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/pulls/741/commits","review_comments_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/pulls/741/comments","review_comment_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/issues/741/comments","statuses_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/statuses/9512ab26fdd7ed1a9273c597e6f753204262178e","head":{"label":"Kotlin:array-queue","ref":"array-queue","sha":"9512ab26fdd7ed1a9273c597e6f753204262178e","user":{"login":"Kotlin","id":1446536,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0NDY1MzY=","avatar_url":"https://avatars3.githubusercontent.com/u/1446536?v=4","gravatar_id":"","url":"https://api.github.com/users/Kotlin","html_url":"https://github.com/Kotlin","followers_url":"https://api.github.com/users/Kotlin/followers","following_url":"https://api.github.com/users/Kotlin/following{/other_user}","gists_url":"https://api.github.com/users/Kotlin/gists{/gist_id}","starred_url":"https://api.github.com/users/Kotlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kotlin/subscriptions","organizations_url":"https://api.github.com/users/Kotlin/orgs","repos_url":"https://api.github.com/users/Kotlin/repos","events_url":"https://api.github.com/users/Kotlin/events{/privacy}","received_events_url":"https://api.github.com/users/Kotlin/received_events","type":"Organization","site_admin":false},"repo":{"id":61722736,"node_id":"MDEwOlJlcG9zaXRvcnk2MTcyMjczNg==","name":"kotlinx.coroutines","full_name":"Kotlin/kotlinx.coroutines","private":false,"owner":{"login":"Kotlin","id":1446536,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0NDY1MzY=","avatar_url":"https://avatars3.githubusercontent.com/u/1446536?v=4","gravatar_id":"","url":"https://api.github.com/users/Kotlin","html_url":"https://github.com/Kotlin","followers_url":"https://api.github.com/users/Kotlin/followers","following_url":"https://api.github.com/users/Kotlin/following{/other_user}","gists_url":"https://api.github.com/users/Kotlin/gists{/gist_id}","starred_url":"https://api.github.com/users/Kotlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kotlin/subscriptions","organizations_url":"https://api.github.com/users/Kotlin/orgs","repos_url":"https://api.github.com/users/Kotlin/repos","events_url":"https://api.github.com/users/Kotlin/events{/privacy}","received_events_url":"https://api.github.com/users/Kotlin/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Kotlin/kotlinx.coroutines","description":"Library support for Kotlin coroutines ","fork":false,"url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines","forks_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/forks","keys_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/teams","hooks_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/hooks","issue_events_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/issues/events{/number}","events_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/events","assignees_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/assignees{/user}","branches_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/branches{/branch}","tags_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/tags","blobs_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/statuses/{sha}","languages_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/languages","stargazers_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/stargazers","contributors_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/contributors","subscribers_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/subscribers","subscription_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/subscription","commits_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/contents/{+path}","compare_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/merges","archive_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/downloads","issues_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/issues{/number}","pulls_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/pulls{/number}","milestones_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/milestones{/number}","notifications_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/labels{/name}","releases_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/releases{/id}","deployments_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/deployments","created_at":"2016-06-22T13:49:21Z","updated_at":"2018-11-01T20:39:28Z","pushed_at":"2018-11-01T21:16:50Z","git_url":"git://github.com/Kotlin/kotlinx.coroutines.git","ssh_url":"git@github.com:Kotlin/kotlinx.coroutines.git","clone_url":"https://github.com/Kotlin/kotlinx.coroutines.git","svn_url":"https://github.com/Kotlin/kotlinx.coroutines","homepage":"","size":10178,"stargazers_count":3428,"watchers_count":3428,"language":"Kotlin","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":436,"mirror_url":null,"archived":false,"open_issues_count":127,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":436,"open_issues":127,"watchers":3428,"default_branch":"master"}},"base":{"label":"Kotlin:develop","ref":"develop","sha":"c9b097ee6a2b335a497217f969db55582d8a3483","user":{"login":"Kotlin","id":1446536,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0NDY1MzY=","avatar_url":"https://avatars3.githubusercontent.com/u/1446536?v=4","gravatar_id":"","url":"https://api.github.com/users/Kotlin","html_url":"https://github.com/Kotlin","followers_url":"https://api.github.com/users/Kotlin/followers","following_url":"https://api.github.com/users/Kotlin/following{/other_user}","gists_url":"https://api.github.com/users/Kotlin/gists{/gist_id}","starred_url":"https://api.github.com/users/Kotlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kotlin/subscriptions","organizations_url":"https://api.github.com/users/Kotlin/orgs","repos_url":"https://api.github.com/users/Kotlin/repos","events_url":"https://api.github.com/users/Kotlin/events{/privacy}","received_events_url":"https://api.github.com/users/Kotlin/received_events","type":"Organization","site_admin":false},"repo":{"id":61722736,"node_id":"MDEwOlJlcG9zaXRvcnk2MTcyMjczNg==","name":"kotlinx.coroutines","full_name":"Kotlin/kotlinx.coroutines","private":false,"owner":{"login":"Kotlin","id":1446536,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0NDY1MzY=","avatar_url":"https://avatars3.githubusercontent.com/u/1446536?v=4","gravatar_id":"","url":"https://api.github.com/users/Kotlin","html_url":"https://github.com/Kotlin","followers_url":"https://api.github.com/users/Kotlin/followers","following_url":"https://api.github.com/users/Kotlin/following{/other_user}","gists_url":"https://api.github.com/users/Kotlin/gists{/gist_id}","starred_url":"https://api.github.com/users/Kotlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kotlin/subscriptions","organizations_url":"https://api.github.com/users/Kotlin/orgs","repos_url":"https://api.github.com/users/Kotlin/repos","events_url":"https://api.github.com/users/Kotlin/events{/privacy}","received_events_url":"https://api.github.com/users/Kotlin/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Kotlin/kotlinx.coroutines","description":"Library support for Kotlin coroutines ","fork":false,"url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines","forks_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/forks","keys_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/teams","hooks_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/hooks","issue_events_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/issues/events{/number}","events_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/events","assignees_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/assignees{/user}","branches_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/branches{/branch}","tags_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/tags","blobs_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/statuses/{sha}","languages_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/languages","stargazers_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/stargazers","contributors_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/contributors","subscribers_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/subscribers","subscription_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/subscription","commits_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/contents/{+path}","compare_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/merges","archive_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/downloads","issues_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/issues{/number}","pulls_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/pulls{/number}","milestones_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/milestones{/number}","notifications_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/labels{/name}","releases_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/releases{/id}","deployments_url":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/deployments","created_at":"2016-06-22T13:49:21Z","updated_at":"2018-11-01T20:39:28Z","pushed_at":"2018-11-01T21:16:50Z","git_url":"git://github.com/Kotlin/kotlinx.coroutines.git","ssh_url":"git@github.com:Kotlin/kotlinx.coroutines.git","clone_url":"https://github.com/Kotlin/kotlinx.coroutines.git","svn_url":"https://github.com/Kotlin/kotlinx.coroutines","homepage":"","size":10178,"stargazers_count":3428,"watchers_count":3428,"language":"Kotlin","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":436,"mirror_url":null,"archived":false,"open_issues_count":127,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":436,"open_issues":127,"watchers":3428,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/pulls/741"},"html":{"href":"https://github.com/Kotlin/kotlinx.coroutines/pull/741"},"issue":{"href":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/issues/741"},"comments":{"href":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/issues/741/comments"},"review_comments":{"href":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/pulls/741/comments"},"review_comment":{"href":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/pulls/741/commits"},"statuses":{"href":"https://api.github.com/repos/Kotlin/kotlinx.coroutines/statuses/9512ab26fdd7ed1a9273c597e6f753204262178e"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"elizarov"}}