{"action":"created","comment":{"url":"https://api.github.com/repos/dotnet/roslyn/pulls/comments/45796642","id":45796642,"diff_hunk":"@@ -658,7 +660,19 @@ private Solution CreateNotKeptAliveSolution()\n             return workspace.CurrentSolution;\n         }\n \n-        private void StopObservingAndWaitForReferenceToGo(ObjectReference observed, int delay = 0)\n+        [DllImport(\"dbghelp.dll\")]\n+        private static extern bool MiniDumpWriteDump(IntPtr hProcess, int ProcessId, IntPtr hFile, int DumpType, IntPtr ExceptionParam, IntPtr UserStreamParam, IntPtr CallbackParam);\n+\n+        private static void DumpProcess(string dumpFileName)\n+        {\n+            using (var fs = File.Create(dumpFileName))\n+            {\n+                var proc = System.Diagnostics.Process.GetCurrentProcess();\n+                MiniDumpWriteDump(proc.Handle, proc.Id, fs.SafeFileHandle.DangerousGetHandle(), /*normal dump*/0, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero);\n+            }","path":"src/Workspaces/CoreTest/SolutionTests/SolutionTests.cs","position":null,"original_position":25,"commit_id":"83ba199d198922f9642b04ff6161d7715309457d","original_commit_id":"144a0ba49a92a7244bbb9cd6477d0cafea79c5a4","user":{"login":"brettfo","id":926281,"avatar_url":"https://avatars.githubusercontent.com/u/926281?v=3","gravatar_id":"","url":"https://api.github.com/users/brettfo","html_url":"https://github.com/brettfo","followers_url":"https://api.github.com/users/brettfo/followers","following_url":"https://api.github.com/users/brettfo/following{/other_user}","gists_url":"https://api.github.com/users/brettfo/gists{/gist_id}","starred_url":"https://api.github.com/users/brettfo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettfo/subscriptions","organizations_url":"https://api.github.com/users/brettfo/orgs","repos_url":"https://api.github.com/users/brettfo/repos","events_url":"https://api.github.com/users/brettfo/events{/privacy}","received_events_url":"https://api.github.com/users/brettfo/received_events","type":"User","site_admin":false},"body":"Thanks for the pointer.  I've updated the call like you suggested.","created_at":"2015-11-24T21:22:33Z","updated_at":"2015-11-24T21:22:33Z","html_url":"https://github.com/dotnet/roslyn/pull/6857#discussion_r45796642","pull_request_url":"https://api.github.com/repos/dotnet/roslyn/pulls/6857","_links":{"self":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/comments/45796642"},"html":{"href":"https://github.com/dotnet/roslyn/pull/6857#discussion_r45796642"},"pull_request":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/6857"}}},"pull_request":{"url":"https://api.github.com/repos/dotnet/roslyn/pulls/6857","id":51143751,"html_url":"https://github.com/dotnet/roslyn/pull/6857","diff_url":"https://github.com/dotnet/roslyn/pull/6857.diff","patch_url":"https://github.com/dotnet/roslyn/pull/6857.patch","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/6857","number":6857,"state":"open","locked":false,"title":"[DON'T REVIEW] [TEST-ONLY] create a dump for a failing test","user":{"login":"brettfo","id":926281,"avatar_url":"https://avatars.githubusercontent.com/u/926281?v=3","gravatar_id":"","url":"https://api.github.com/users/brettfo","html_url":"https://github.com/brettfo","followers_url":"https://api.github.com/users/brettfo/followers","following_url":"https://api.github.com/users/brettfo/following{/other_user}","gists_url":"https://api.github.com/users/brettfo/gists{/gist_id}","starred_url":"https://api.github.com/users/brettfo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettfo/subscriptions","organizations_url":"https://api.github.com/users/brettfo/orgs","repos_url":"https://api.github.com/users/brettfo/repos","events_url":"https://api.github.com/users/brettfo/events{/privacy}","received_events_url":"https://api.github.com/users/brettfo/received_events","type":"User","site_admin":false},"body":"A flaky test was disabled for #6409 because an object wasn't gathered by the GC, but manual investigation hasn't yielded anything useful.  This PR will now cause the test to create a memory dump if the object wasn't gathered which can then be investigated after-the-fact (due to artifact archiving in Jenkins).\r\n\r\nThis code is meant to be temporary and removed once the bug has been fixed or an actionable dump has been collected.\r\n\r\nFYI @dotnet/roslyn-infrastructure ","created_at":"2015-11-18T21:19:50Z","updated_at":"2015-11-24T21:22:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8cbd477e52ddf5ec53eb50c8befeaecd5f9203be","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dotnet/roslyn/pulls/6857/commits","review_comments_url":"https://api.github.com/repos/dotnet/roslyn/pulls/6857/comments","review_comment_url":"https://api.github.com/repos/dotnet/roslyn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/6857/comments","statuses_url":"https://api.github.com/repos/dotnet/roslyn/statuses/83ba199d198922f9642b04ff6161d7715309457d","head":{"label":"brettfo:failfast-on-kept-handle","ref":"failfast-on-kept-handle","sha":"83ba199d198922f9642b04ff6161d7715309457d","user":{"login":"brettfo","id":926281,"avatar_url":"https://avatars.githubusercontent.com/u/926281?v=3","gravatar_id":"","url":"https://api.github.com/users/brettfo","html_url":"https://github.com/brettfo","followers_url":"https://api.github.com/users/brettfo/followers","following_url":"https://api.github.com/users/brettfo/following{/other_user}","gists_url":"https://api.github.com/users/brettfo/gists{/gist_id}","starred_url":"https://api.github.com/users/brettfo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettfo/subscriptions","organizations_url":"https://api.github.com/users/brettfo/orgs","repos_url":"https://api.github.com/users/brettfo/repos","events_url":"https://api.github.com/users/brettfo/events{/privacy}","received_events_url":"https://api.github.com/users/brettfo/received_events","type":"User","site_admin":false},"repo":{"id":30557497,"name":"roslyn","full_name":"brettfo/roslyn","owner":{"login":"brettfo","id":926281,"avatar_url":"https://avatars.githubusercontent.com/u/926281?v=3","gravatar_id":"","url":"https://api.github.com/users/brettfo","html_url":"https://github.com/brettfo","followers_url":"https://api.github.com/users/brettfo/followers","following_url":"https://api.github.com/users/brettfo/following{/other_user}","gists_url":"https://api.github.com/users/brettfo/gists{/gist_id}","starred_url":"https://api.github.com/users/brettfo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettfo/subscriptions","organizations_url":"https://api.github.com/users/brettfo/orgs","repos_url":"https://api.github.com/users/brettfo/repos","events_url":"https://api.github.com/users/brettfo/events{/privacy}","received_events_url":"https://api.github.com/users/brettfo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brettfo/roslyn","description":"The .NET Compiler Platform (\"Roslyn\") provides open-source C# and Visual Basic compilers with rich code analysis APIs.","fork":true,"url":"https://api.github.com/repos/brettfo/roslyn","forks_url":"https://api.github.com/repos/brettfo/roslyn/forks","keys_url":"https://api.github.com/repos/brettfo/roslyn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brettfo/roslyn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brettfo/roslyn/teams","hooks_url":"https://api.github.com/repos/brettfo/roslyn/hooks","issue_events_url":"https://api.github.com/repos/brettfo/roslyn/issues/events{/number}","events_url":"https://api.github.com/repos/brettfo/roslyn/events","assignees_url":"https://api.github.com/repos/brettfo/roslyn/assignees{/user}","branches_url":"https://api.github.com/repos/brettfo/roslyn/branches{/branch}","tags_url":"https://api.github.com/repos/brettfo/roslyn/tags","blobs_url":"https://api.github.com/repos/brettfo/roslyn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brettfo/roslyn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brettfo/roslyn/git/refs{/sha}","trees_url":"https://api.github.com/repos/brettfo/roslyn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brettfo/roslyn/statuses/{sha}","languages_url":"https://api.github.com/repos/brettfo/roslyn/languages","stargazers_url":"https://api.github.com/repos/brettfo/roslyn/stargazers","contributors_url":"https://api.github.com/repos/brettfo/roslyn/contributors","subscribers_url":"https://api.github.com/repos/brettfo/roslyn/subscribers","subscription_url":"https://api.github.com/repos/brettfo/roslyn/subscription","commits_url":"https://api.github.com/repos/brettfo/roslyn/commits{/sha}","git_commits_url":"https://api.github.com/repos/brettfo/roslyn/git/commits{/sha}","comments_url":"https://api.github.com/repos/brettfo/roslyn/comments{/number}","issue_comment_url":"https://api.github.com/repos/brettfo/roslyn/issues/comments{/number}","contents_url":"https://api.github.com/repos/brettfo/roslyn/contents/{+path}","compare_url":"https://api.github.com/repos/brettfo/roslyn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brettfo/roslyn/merges","archive_url":"https://api.github.com/repos/brettfo/roslyn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brettfo/roslyn/downloads","issues_url":"https://api.github.com/repos/brettfo/roslyn/issues{/number}","pulls_url":"https://api.github.com/repos/brettfo/roslyn/pulls{/number}","milestones_url":"https://api.github.com/repos/brettfo/roslyn/milestones{/number}","notifications_url":"https://api.github.com/repos/brettfo/roslyn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brettfo/roslyn/labels{/name}","releases_url":"https://api.github.com/repos/brettfo/roslyn/releases{/id}","created_at":"2015-02-09T20:43:48Z","updated_at":"2015-05-06T18:17:34Z","pushed_at":"2015-11-24T21:22:04Z","git_url":"git://github.com/brettfo/roslyn.git","ssh_url":"git@github.com:brettfo/roslyn.git","clone_url":"https://github.com/brettfo/roslyn.git","svn_url":"https://github.com/brettfo/roslyn","homepage":"","size":114232,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dotnet:master","ref":"master","sha":"a073d252325513b5776489d72a4de4b176a6767d","user":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"repo":{"id":29078997,"name":"roslyn","full_name":"dotnet/roslyn","owner":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dotnet/roslyn","description":"The .NET Compiler Platform (\"Roslyn\") provides open-source C# and Visual Basic compilers with rich code analysis APIs.","fork":false,"url":"https://api.github.com/repos/dotnet/roslyn","forks_url":"https://api.github.com/repos/dotnet/roslyn/forks","keys_url":"https://api.github.com/repos/dotnet/roslyn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotnet/roslyn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotnet/roslyn/teams","hooks_url":"https://api.github.com/repos/dotnet/roslyn/hooks","issue_events_url":"https://api.github.com/repos/dotnet/roslyn/issues/events{/number}","events_url":"https://api.github.com/repos/dotnet/roslyn/events","assignees_url":"https://api.github.com/repos/dotnet/roslyn/assignees{/user}","branches_url":"https://api.github.com/repos/dotnet/roslyn/branches{/branch}","tags_url":"https://api.github.com/repos/dotnet/roslyn/tags","blobs_url":"https://api.github.com/repos/dotnet/roslyn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotnet/roslyn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotnet/roslyn/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotnet/roslyn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotnet/roslyn/statuses/{sha}","languages_url":"https://api.github.com/repos/dotnet/roslyn/languages","stargazers_url":"https://api.github.com/repos/dotnet/roslyn/stargazers","contributors_url":"https://api.github.com/repos/dotnet/roslyn/contributors","subscribers_url":"https://api.github.com/repos/dotnet/roslyn/subscribers","subscription_url":"https://api.github.com/repos/dotnet/roslyn/subscription","commits_url":"https://api.github.com/repos/dotnet/roslyn/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotnet/roslyn/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotnet/roslyn/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotnet/roslyn/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotnet/roslyn/contents/{+path}","compare_url":"https://api.github.com/repos/dotnet/roslyn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotnet/roslyn/merges","archive_url":"https://api.github.com/repos/dotnet/roslyn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotnet/roslyn/downloads","issues_url":"https://api.github.com/repos/dotnet/roslyn/issues{/number}","pulls_url":"https://api.github.com/repos/dotnet/roslyn/pulls{/number}","milestones_url":"https://api.github.com/repos/dotnet/roslyn/milestones{/number}","notifications_url":"https://api.github.com/repos/dotnet/roslyn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotnet/roslyn/labels{/name}","releases_url":"https://api.github.com/repos/dotnet/roslyn/releases{/id}","created_at":"2015-01-11T02:39:03Z","updated_at":"2015-11-24T10:50:46Z","pushed_at":"2015-11-24T21:22:04Z","git_url":"git://github.com/dotnet/roslyn.git","ssh_url":"git@github.com:dotnet/roslyn.git","clone_url":"https://github.com/dotnet/roslyn.git","svn_url":"https://github.com/dotnet/roslyn","homepage":"","size":138106,"stargazers_count":3810,"watchers_count":3810,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":918,"mirror_url":null,"open_issues_count":1653,"forks":918,"open_issues":1653,"watchers":3810,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/6857"},"html":{"href":"https://github.com/dotnet/roslyn/pull/6857"},"issue":{"href":"https://api.github.com/repos/dotnet/roslyn/issues/6857"},"comments":{"href":"https://api.github.com/repos/dotnet/roslyn/issues/6857/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/6857/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/6857/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/roslyn/statuses/83ba199d198922f9642b04ff6161d7715309457d"}}}}