{"action":"created","comment":{"url":"https://api.github.com/repos/rspec/rspec-mocks/pulls/comments/33490239","id":33490239,"diff_hunk":"@@ -383,6 +383,22 @@ def defined_private_method\n         object.implemented\n       end\n \n+      it 'wraps proxies in a reentrant mutex so we dont trigger deadlocks' do\n+        klass = Class.new { def message; end; }\n+        called_for = []\n+        RSpec.configuration.mock_with(:rspec) do |config|\n+          config.before_verifying_doubles do |ref|\n+            unless called_for.include? ref.target\n+              called_for << ref.target\n+              ::RSpec::Mocks.space.proxy_for(ref.target)\n+            end\n+          end\n+          expect { allow(klass.new).to receive(:message) }.to_not raise_error\n+          called_for.clear","path":"spec/rspec/mocks/partial_double_spec.rb","position":15,"original_position":15,"commit_id":"e90a1d0a7d3ac4007d2e5deebe4ba27065185aa7","original_commit_id":"e90a1d0a7d3ac4007d2e5deebe4ba27065185aa7","user":{"login":"JonRowe","id":162976,"avatar_url":"https://avatars.githubusercontent.com/u/162976?v=3","gravatar_id":"","url":"https://api.github.com/users/JonRowe","html_url":"https://github.com/JonRowe","followers_url":"https://api.github.com/users/JonRowe/followers","following_url":"https://api.github.com/users/JonRowe/following{/other_user}","gists_url":"https://api.github.com/users/JonRowe/gists{/gist_id}","starred_url":"https://api.github.com/users/JonRowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonRowe/subscriptions","organizations_url":"https://api.github.com/users/JonRowe/orgs","repos_url":"https://api.github.com/users/JonRowe/repos","events_url":"https://api.github.com/users/JonRowe/events{/privacy}","received_events_url":"https://api.github.com/users/JonRowe/received_events","type":"User","site_admin":false},"body":"Hey I said attempting ;)","created_at":"2015-06-29T17:40:18Z","updated_at":"2015-06-29T17:40:18Z","html_url":"https://github.com/rspec/rspec-mocks/pull/979#discussion_r33490239","pull_request_url":"https://api.github.com/repos/rspec/rspec-mocks/pulls/979","_links":{"self":{"href":"https://api.github.com/repos/rspec/rspec-mocks/pulls/comments/33490239"},"html":{"href":"https://github.com/rspec/rspec-mocks/pull/979#discussion_r33490239"},"pull_request":{"href":"https://api.github.com/repos/rspec/rspec-mocks/pulls/979"}}},"pull_request":{"url":"https://api.github.com/repos/rspec/rspec-mocks/pulls/979","id":38410013,"html_url":"https://github.com/rspec/rspec-mocks/pull/979","diff_url":"https://github.com/rspec/rspec-mocks/pull/979.diff","patch_url":"https://github.com/rspec/rspec-mocks/pull/979.patch","issue_url":"https://api.github.com/repos/rspec/rspec-mocks/issues/979","number":979,"state":"open","locked":false,"title":"Switch to using reentrant mutex to avoid deadlocks","user":{"login":"JonRowe","id":162976,"avatar_url":"https://avatars.githubusercontent.com/u/162976?v=3","gravatar_id":"","url":"https://api.github.com/users/JonRowe","html_url":"https://github.com/JonRowe","followers_url":"https://api.github.com/users/JonRowe/followers","following_url":"https://api.github.com/users/JonRowe/following{/other_user}","gists_url":"https://api.github.com/users/JonRowe/gists{/gist_id}","starred_url":"https://api.github.com/users/JonRowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonRowe/subscriptions","organizations_url":"https://api.github.com/users/JonRowe/orgs","repos_url":"https://api.github.com/users/JonRowe/repos","events_url":"https://api.github.com/users/JonRowe/events{/privacy}","received_events_url":"https://api.github.com/users/JonRowe/received_events","type":"User","site_admin":false},"body":"Part of a solution for rspec/rspec-core#1994","created_at":"2015-06-24T05:59:52Z","updated_at":"2015-06-29T17:40:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"71c527bbe66a1992d657170894c3dc8167a42e49","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rspec/rspec-mocks/pulls/979/commits","review_comments_url":"https://api.github.com/repos/rspec/rspec-mocks/pulls/979/comments","review_comment_url":"https://api.github.com/repos/rspec/rspec-mocks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rspec/rspec-mocks/issues/979/comments","statuses_url":"https://api.github.com/repos/rspec/rspec-mocks/statuses/e90a1d0a7d3ac4007d2e5deebe4ba27065185aa7","head":{"label":"rspec:switch_to_reentrantmutext","ref":"switch_to_reentrantmutext","sha":"e90a1d0a7d3ac4007d2e5deebe4ba27065185aa7","user":{"login":"rspec","id":22388,"avatar_url":"https://avatars.githubusercontent.com/u/22388?v=3","gravatar_id":"","url":"https://api.github.com/users/rspec","html_url":"https://github.com/rspec","followers_url":"https://api.github.com/users/rspec/followers","following_url":"https://api.github.com/users/rspec/following{/other_user}","gists_url":"https://api.github.com/users/rspec/gists{/gist_id}","starred_url":"https://api.github.com/users/rspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rspec/subscriptions","organizations_url":"https://api.github.com/users/rspec/orgs","repos_url":"https://api.github.com/users/rspec/repos","events_url":"https://api.github.com/users/rspec/events{/privacy}","received_events_url":"https://api.github.com/users/rspec/received_events","type":"Organization","site_admin":false},"repo":{"id":238983,"name":"rspec-mocks","full_name":"rspec/rspec-mocks","owner":{"login":"rspec","id":22388,"avatar_url":"https://avatars.githubusercontent.com/u/22388?v=3","gravatar_id":"","url":"https://api.github.com/users/rspec","html_url":"https://github.com/rspec","followers_url":"https://api.github.com/users/rspec/followers","following_url":"https://api.github.com/users/rspec/following{/other_user}","gists_url":"https://api.github.com/users/rspec/gists{/gist_id}","starred_url":"https://api.github.com/users/rspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rspec/subscriptions","organizations_url":"https://api.github.com/users/rspec/orgs","repos_url":"https://api.github.com/users/rspec/repos","events_url":"https://api.github.com/users/rspec/events{/privacy}","received_events_url":"https://api.github.com/users/rspec/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rspec/rspec-mocks","description":"RSpec's 'test double' framework, with support for stubbing and mocking","fork":false,"url":"https://api.github.com/repos/rspec/rspec-mocks","forks_url":"https://api.github.com/repos/rspec/rspec-mocks/forks","keys_url":"https://api.github.com/repos/rspec/rspec-mocks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rspec/rspec-mocks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rspec/rspec-mocks/teams","hooks_url":"https://api.github.com/repos/rspec/rspec-mocks/hooks","issue_events_url":"https://api.github.com/repos/rspec/rspec-mocks/issues/events{/number}","events_url":"https://api.github.com/repos/rspec/rspec-mocks/events","assignees_url":"https://api.github.com/repos/rspec/rspec-mocks/assignees{/user}","branches_url":"https://api.github.com/repos/rspec/rspec-mocks/branches{/branch}","tags_url":"https://api.github.com/repos/rspec/rspec-mocks/tags","blobs_url":"https://api.github.com/repos/rspec/rspec-mocks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rspec/rspec-mocks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rspec/rspec-mocks/git/refs{/sha}","trees_url":"https://api.github.com/repos/rspec/rspec-mocks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rspec/rspec-mocks/statuses/{sha}","languages_url":"https://api.github.com/repos/rspec/rspec-mocks/languages","stargazers_url":"https://api.github.com/repos/rspec/rspec-mocks/stargazers","contributors_url":"https://api.github.com/repos/rspec/rspec-mocks/contributors","subscribers_url":"https://api.github.com/repos/rspec/rspec-mocks/subscribers","subscription_url":"https://api.github.com/repos/rspec/rspec-mocks/subscription","commits_url":"https://api.github.com/repos/rspec/rspec-mocks/commits{/sha}","git_commits_url":"https://api.github.com/repos/rspec/rspec-mocks/git/commits{/sha}","comments_url":"https://api.github.com/repos/rspec/rspec-mocks/comments{/number}","issue_comment_url":"https://api.github.com/repos/rspec/rspec-mocks/issues/comments{/number}","contents_url":"https://api.github.com/repos/rspec/rspec-mocks/contents/{+path}","compare_url":"https://api.github.com/repos/rspec/rspec-mocks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rspec/rspec-mocks/merges","archive_url":"https://api.github.com/repos/rspec/rspec-mocks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rspec/rspec-mocks/downloads","issues_url":"https://api.github.com/repos/rspec/rspec-mocks/issues{/number}","pulls_url":"https://api.github.com/repos/rspec/rspec-mocks/pulls{/number}","milestones_url":"https://api.github.com/repos/rspec/rspec-mocks/milestones{/number}","notifications_url":"https://api.github.com/repos/rspec/rspec-mocks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rspec/rspec-mocks/labels{/name}","releases_url":"https://api.github.com/repos/rspec/rspec-mocks/releases{/id}","created_at":"2009-06-29T15:56:06Z","updated_at":"2015-06-26T23:23:28Z","pushed_at":"2015-06-25T17:38:37Z","git_url":"git://github.com/rspec/rspec-mocks.git","ssh_url":"git@github.com:rspec/rspec-mocks.git","clone_url":"https://github.com/rspec/rspec-mocks.git","svn_url":"https://github.com/rspec/rspec-mocks","homepage":"http://relishapp.com/rspec/rspec-mocks","size":13213,"stargazers_count":560,"watchers_count":560,"language":"Ruby","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":198,"mirror_url":null,"open_issues_count":16,"forks":198,"open_issues":16,"watchers":560,"default_branch":"master"}},"base":{"label":"rspec:master","ref":"master","sha":"e20c0e148dfb901f4b7acf4cd9c3756426f69255","user":{"login":"rspec","id":22388,"avatar_url":"https://avatars.githubusercontent.com/u/22388?v=3","gravatar_id":"","url":"https://api.github.com/users/rspec","html_url":"https://github.com/rspec","followers_url":"https://api.github.com/users/rspec/followers","following_url":"https://api.github.com/users/rspec/following{/other_user}","gists_url":"https://api.github.com/users/rspec/gists{/gist_id}","starred_url":"https://api.github.com/users/rspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rspec/subscriptions","organizations_url":"https://api.github.com/users/rspec/orgs","repos_url":"https://api.github.com/users/rspec/repos","events_url":"https://api.github.com/users/rspec/events{/privacy}","received_events_url":"https://api.github.com/users/rspec/received_events","type":"Organization","site_admin":false},"repo":{"id":238983,"name":"rspec-mocks","full_name":"rspec/rspec-mocks","owner":{"login":"rspec","id":22388,"avatar_url":"https://avatars.githubusercontent.com/u/22388?v=3","gravatar_id":"","url":"https://api.github.com/users/rspec","html_url":"https://github.com/rspec","followers_url":"https://api.github.com/users/rspec/followers","following_url":"https://api.github.com/users/rspec/following{/other_user}","gists_url":"https://api.github.com/users/rspec/gists{/gist_id}","starred_url":"https://api.github.com/users/rspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rspec/subscriptions","organizations_url":"https://api.github.com/users/rspec/orgs","repos_url":"https://api.github.com/users/rspec/repos","events_url":"https://api.github.com/users/rspec/events{/privacy}","received_events_url":"https://api.github.com/users/rspec/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rspec/rspec-mocks","description":"RSpec's 'test double' framework, with support for stubbing and mocking","fork":false,"url":"https://api.github.com/repos/rspec/rspec-mocks","forks_url":"https://api.github.com/repos/rspec/rspec-mocks/forks","keys_url":"https://api.github.com/repos/rspec/rspec-mocks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rspec/rspec-mocks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rspec/rspec-mocks/teams","hooks_url":"https://api.github.com/repos/rspec/rspec-mocks/hooks","issue_events_url":"https://api.github.com/repos/rspec/rspec-mocks/issues/events{/number}","events_url":"https://api.github.com/repos/rspec/rspec-mocks/events","assignees_url":"https://api.github.com/repos/rspec/rspec-mocks/assignees{/user}","branches_url":"https://api.github.com/repos/rspec/rspec-mocks/branches{/branch}","tags_url":"https://api.github.com/repos/rspec/rspec-mocks/tags","blobs_url":"https://api.github.com/repos/rspec/rspec-mocks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rspec/rspec-mocks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rspec/rspec-mocks/git/refs{/sha}","trees_url":"https://api.github.com/repos/rspec/rspec-mocks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rspec/rspec-mocks/statuses/{sha}","languages_url":"https://api.github.com/repos/rspec/rspec-mocks/languages","stargazers_url":"https://api.github.com/repos/rspec/rspec-mocks/stargazers","contributors_url":"https://api.github.com/repos/rspec/rspec-mocks/contributors","subscribers_url":"https://api.github.com/repos/rspec/rspec-mocks/subscribers","subscription_url":"https://api.github.com/repos/rspec/rspec-mocks/subscription","commits_url":"https://api.github.com/repos/rspec/rspec-mocks/commits{/sha}","git_commits_url":"https://api.github.com/repos/rspec/rspec-mocks/git/commits{/sha}","comments_url":"https://api.github.com/repos/rspec/rspec-mocks/comments{/number}","issue_comment_url":"https://api.github.com/repos/rspec/rspec-mocks/issues/comments{/number}","contents_url":"https://api.github.com/repos/rspec/rspec-mocks/contents/{+path}","compare_url":"https://api.github.com/repos/rspec/rspec-mocks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rspec/rspec-mocks/merges","archive_url":"https://api.github.com/repos/rspec/rspec-mocks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rspec/rspec-mocks/downloads","issues_url":"https://api.github.com/repos/rspec/rspec-mocks/issues{/number}","pulls_url":"https://api.github.com/repos/rspec/rspec-mocks/pulls{/number}","milestones_url":"https://api.github.com/repos/rspec/rspec-mocks/milestones{/number}","notifications_url":"https://api.github.com/repos/rspec/rspec-mocks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rspec/rspec-mocks/labels{/name}","releases_url":"https://api.github.com/repos/rspec/rspec-mocks/releases{/id}","created_at":"2009-06-29T15:56:06Z","updated_at":"2015-06-26T23:23:28Z","pushed_at":"2015-06-25T17:38:37Z","git_url":"git://github.com/rspec/rspec-mocks.git","ssh_url":"git@github.com:rspec/rspec-mocks.git","clone_url":"https://github.com/rspec/rspec-mocks.git","svn_url":"https://github.com/rspec/rspec-mocks","homepage":"http://relishapp.com/rspec/rspec-mocks","size":13213,"stargazers_count":560,"watchers_count":560,"language":"Ruby","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":198,"mirror_url":null,"open_issues_count":16,"forks":198,"open_issues":16,"watchers":560,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rspec/rspec-mocks/pulls/979"},"html":{"href":"https://github.com/rspec/rspec-mocks/pull/979"},"issue":{"href":"https://api.github.com/repos/rspec/rspec-mocks/issues/979"},"comments":{"href":"https://api.github.com/repos/rspec/rspec-mocks/issues/979/comments"},"review_comments":{"href":"https://api.github.com/repos/rspec/rspec-mocks/pulls/979/comments"},"review_comment":{"href":"https://api.github.com/repos/rspec/rspec-mocks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rspec/rspec-mocks/pulls/979/commits"},"statuses":{"href":"https://api.github.com/repos/rspec/rspec-mocks/statuses/e90a1d0a7d3ac4007d2e5deebe4ba27065185aa7"}}}}