{"action":"created","comment":{"url":"https://api.github.com/repos/mono/mono/pulls/comments/49542578","id":49542578,"diff_hunk":"@@ -5888,6 +5892,28 @@ ves_icall_System_Environment_get_NewLine (void)\n #endif\n }\n \n+ICALL_EXPORT MonoBoolean\n+ves_icall_System_Environment_GetIs64BitOperatingSystem (void)\n+{\n+#if SIZEOF_VOID_P == 8\n+\treturn TRUE;\n+#else\n+#ifdef HOST_WIN32\n+\tgboolean isWow64Process = FALSE;\n+\tif (IsWow64Process (GetCurrentProcess (), &isWow64Process)) {\n+\t\treturn (MonoBoolean)isWow64Process;\n+\t}\n+#elif defined(HAVE_SYS_UTSNAME_H)\n+\tstruct utsname name;\n+\n+\tif (uname (&name) >= 0) {\n+\t\treturn strcmp (name.machine, \"x86_64\") == 0 || strcmp (name.machine, \"aarch64\") == 0;","path":"mono/metadata/icall.c","position":null,"original_position":30,"commit_id":"2fa5d255abb2f1685282893cb8e2c57234540278","original_commit_id":"9c12b3294b9fabe896c7a64044948b16d6ffaced","user":{"login":"akoeplinger","id":1376924,"avatar_url":"https://avatars.githubusercontent.com/u/1376924?v=3","gravatar_id":"","url":"https://api.github.com/users/akoeplinger","html_url":"https://github.com/akoeplinger","followers_url":"https://api.github.com/users/akoeplinger/followers","following_url":"https://api.github.com/users/akoeplinger/following{/other_user}","gists_url":"https://api.github.com/users/akoeplinger/gists{/gist_id}","starred_url":"https://api.github.com/users/akoeplinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akoeplinger/subscriptions","organizations_url":"https://api.github.com/users/akoeplinger/orgs","repos_url":"https://api.github.com/users/akoeplinger/repos","events_url":"https://api.github.com/users/akoeplinger/events{/privacy}","received_events_url":"https://api.github.com/users/akoeplinger/received_events","type":"User","site_admin":false},"body":"Updated.","created_at":"2016-01-13T01:47:00Z","updated_at":"2016-01-13T01:47:00Z","html_url":"https://github.com/mono/mono/pull/2422#discussion_r49542578","pull_request_url":"https://api.github.com/repos/mono/mono/pulls/2422","_links":{"self":{"href":"https://api.github.com/repos/mono/mono/pulls/comments/49542578"},"html":{"href":"https://github.com/mono/mono/pull/2422#discussion_r49542578"},"pull_request":{"href":"https://api.github.com/repos/mono/mono/pulls/2422"}}},"pull_request":{"url":"https://api.github.com/repos/mono/mono/pulls/2422","id":55778463,"html_url":"https://github.com/mono/mono/pull/2422","diff_url":"https://github.com/mono/mono/pull/2422.diff","patch_url":"https://github.com/mono/mono/pull/2422.patch","issue_url":"https://api.github.com/repos/mono/mono/issues/2422","number":2422,"state":"open","locked":false,"title":"[corlib] Properly implement Environment.Is64BitOperatingSystem","user":{"login":"akoeplinger","id":1376924,"avatar_url":"https://avatars.githubusercontent.com/u/1376924?v=3","gravatar_id":"","url":"https://api.github.com/users/akoeplinger","html_url":"https://github.com/akoeplinger","followers_url":"https://api.github.com/users/akoeplinger/followers","following_url":"https://api.github.com/users/akoeplinger/following{/other_user}","gists_url":"https://api.github.com/users/akoeplinger/gists{/gist_id}","starred_url":"https://api.github.com/users/akoeplinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akoeplinger/subscriptions","organizations_url":"https://api.github.com/users/akoeplinger/orgs","repos_url":"https://api.github.com/users/akoeplinger/repos","events_url":"https://api.github.com/users/akoeplinger/events{/privacy}","received_events_url":"https://api.github.com/users/akoeplinger/received_events","type":"User","site_admin":false},"body":"Before we only checked if IntPtr.Size == 8, but this returns false for a 32bit Mono running on a 64bit OS.\r\nAdded an icall that gets the correct value from the runtime instead.\r\n\r\nFixes https://bugzilla.xamarin.com/show_bug.cgi?id=37414","created_at":"2016-01-12T16:08:50Z","updated_at":"2016-01-13T01:47:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ad720ffec52f26289f5038dc966681d2be0f522b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mono/mono/pulls/2422/commits","review_comments_url":"https://api.github.com/repos/mono/mono/pulls/2422/comments","review_comment_url":"https://api.github.com/repos/mono/mono/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mono/mono/issues/2422/comments","statuses_url":"https://api.github.com/repos/mono/mono/statuses/2fa5d255abb2f1685282893cb8e2c57234540278","head":{"label":"akoeplinger:environment-is64bitoperatingsystem","ref":"environment-is64bitoperatingsystem","sha":"2fa5d255abb2f1685282893cb8e2c57234540278","user":{"login":"akoeplinger","id":1376924,"avatar_url":"https://avatars.githubusercontent.com/u/1376924?v=3","gravatar_id":"","url":"https://api.github.com/users/akoeplinger","html_url":"https://github.com/akoeplinger","followers_url":"https://api.github.com/users/akoeplinger/followers","following_url":"https://api.github.com/users/akoeplinger/following{/other_user}","gists_url":"https://api.github.com/users/akoeplinger/gists{/gist_id}","starred_url":"https://api.github.com/users/akoeplinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akoeplinger/subscriptions","organizations_url":"https://api.github.com/users/akoeplinger/orgs","repos_url":"https://api.github.com/users/akoeplinger/repos","events_url":"https://api.github.com/users/akoeplinger/events{/privacy}","received_events_url":"https://api.github.com/users/akoeplinger/received_events","type":"User","site_admin":false},"repo":{"id":8077597,"name":"mono","full_name":"akoeplinger/mono","owner":{"login":"akoeplinger","id":1376924,"avatar_url":"https://avatars.githubusercontent.com/u/1376924?v=3","gravatar_id":"","url":"https://api.github.com/users/akoeplinger","html_url":"https://github.com/akoeplinger","followers_url":"https://api.github.com/users/akoeplinger/followers","following_url":"https://api.github.com/users/akoeplinger/following{/other_user}","gists_url":"https://api.github.com/users/akoeplinger/gists{/gist_id}","starred_url":"https://api.github.com/users/akoeplinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akoeplinger/subscriptions","organizations_url":"https://api.github.com/users/akoeplinger/orgs","repos_url":"https://api.github.com/users/akoeplinger/repos","events_url":"https://api.github.com/users/akoeplinger/events{/privacy}","received_events_url":"https://api.github.com/users/akoeplinger/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/akoeplinger/mono","description":"Mono open source ECMA CLI, C# and .NET implementation.","fork":true,"url":"https://api.github.com/repos/akoeplinger/mono","forks_url":"https://api.github.com/repos/akoeplinger/mono/forks","keys_url":"https://api.github.com/repos/akoeplinger/mono/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akoeplinger/mono/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akoeplinger/mono/teams","hooks_url":"https://api.github.com/repos/akoeplinger/mono/hooks","issue_events_url":"https://api.github.com/repos/akoeplinger/mono/issues/events{/number}","events_url":"https://api.github.com/repos/akoeplinger/mono/events","assignees_url":"https://api.github.com/repos/akoeplinger/mono/assignees{/user}","branches_url":"https://api.github.com/repos/akoeplinger/mono/branches{/branch}","tags_url":"https://api.github.com/repos/akoeplinger/mono/tags","blobs_url":"https://api.github.com/repos/akoeplinger/mono/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akoeplinger/mono/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akoeplinger/mono/git/refs{/sha}","trees_url":"https://api.github.com/repos/akoeplinger/mono/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akoeplinger/mono/statuses/{sha}","languages_url":"https://api.github.com/repos/akoeplinger/mono/languages","stargazers_url":"https://api.github.com/repos/akoeplinger/mono/stargazers","contributors_url":"https://api.github.com/repos/akoeplinger/mono/contributors","subscribers_url":"https://api.github.com/repos/akoeplinger/mono/subscribers","subscription_url":"https://api.github.com/repos/akoeplinger/mono/subscription","commits_url":"https://api.github.com/repos/akoeplinger/mono/commits{/sha}","git_commits_url":"https://api.github.com/repos/akoeplinger/mono/git/commits{/sha}","comments_url":"https://api.github.com/repos/akoeplinger/mono/comments{/number}","issue_comment_url":"https://api.github.com/repos/akoeplinger/mono/issues/comments{/number}","contents_url":"https://api.github.com/repos/akoeplinger/mono/contents/{+path}","compare_url":"https://api.github.com/repos/akoeplinger/mono/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akoeplinger/mono/merges","archive_url":"https://api.github.com/repos/akoeplinger/mono/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akoeplinger/mono/downloads","issues_url":"https://api.github.com/repos/akoeplinger/mono/issues{/number}","pulls_url":"https://api.github.com/repos/akoeplinger/mono/pulls{/number}","milestones_url":"https://api.github.com/repos/akoeplinger/mono/milestones{/number}","notifications_url":"https://api.github.com/repos/akoeplinger/mono/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akoeplinger/mono/labels{/name}","releases_url":"https://api.github.com/repos/akoeplinger/mono/releases{/id}","created_at":"2013-02-07T17:21:26Z","updated_at":"2015-05-12T18:28:00Z","pushed_at":"2016-01-13T01:46:51Z","git_url":"git://github.com/akoeplinger/mono.git","ssh_url":"git@github.com:akoeplinger/mono.git","clone_url":"https://github.com/akoeplinger/mono.git","svn_url":"https://github.com/akoeplinger/mono","homepage":"http://www.mono-project.com/","size":392623,"stargazers_count":2,"watchers_count":2,"language":"C#","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":2,"default_branch":"master"}},"base":{"label":"mono:master","ref":"master","sha":"95f1d9f467300b11da5b2defcfaec2f234f4ec0e","user":{"login":"mono","id":53395,"avatar_url":"https://avatars.githubusercontent.com/u/53395?v=3","gravatar_id":"","url":"https://api.github.com/users/mono","html_url":"https://github.com/mono","followers_url":"https://api.github.com/users/mono/followers","following_url":"https://api.github.com/users/mono/following{/other_user}","gists_url":"https://api.github.com/users/mono/gists{/gist_id}","starred_url":"https://api.github.com/users/mono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mono/subscriptions","organizations_url":"https://api.github.com/users/mono/orgs","repos_url":"https://api.github.com/users/mono/repos","events_url":"https://api.github.com/users/mono/events{/privacy}","received_events_url":"https://api.github.com/users/mono/received_events","type":"Organization","site_admin":false},"repo":{"id":791611,"name":"mono","full_name":"mono/mono","owner":{"login":"mono","id":53395,"avatar_url":"https://avatars.githubusercontent.com/u/53395?v=3","gravatar_id":"","url":"https://api.github.com/users/mono","html_url":"https://github.com/mono","followers_url":"https://api.github.com/users/mono/followers","following_url":"https://api.github.com/users/mono/following{/other_user}","gists_url":"https://api.github.com/users/mono/gists{/gist_id}","starred_url":"https://api.github.com/users/mono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mono/subscriptions","organizations_url":"https://api.github.com/users/mono/orgs","repos_url":"https://api.github.com/users/mono/repos","events_url":"https://api.github.com/users/mono/events{/privacy}","received_events_url":"https://api.github.com/users/mono/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mono/mono","description":"Mono open source ECMA CLI, C# and .NET implementation.","fork":false,"url":"https://api.github.com/repos/mono/mono","forks_url":"https://api.github.com/repos/mono/mono/forks","keys_url":"https://api.github.com/repos/mono/mono/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mono/mono/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mono/mono/teams","hooks_url":"https://api.github.com/repos/mono/mono/hooks","issue_events_url":"https://api.github.com/repos/mono/mono/issues/events{/number}","events_url":"https://api.github.com/repos/mono/mono/events","assignees_url":"https://api.github.com/repos/mono/mono/assignees{/user}","branches_url":"https://api.github.com/repos/mono/mono/branches{/branch}","tags_url":"https://api.github.com/repos/mono/mono/tags","blobs_url":"https://api.github.com/repos/mono/mono/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mono/mono/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mono/mono/git/refs{/sha}","trees_url":"https://api.github.com/repos/mono/mono/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mono/mono/statuses/{sha}","languages_url":"https://api.github.com/repos/mono/mono/languages","stargazers_url":"https://api.github.com/repos/mono/mono/stargazers","contributors_url":"https://api.github.com/repos/mono/mono/contributors","subscribers_url":"https://api.github.com/repos/mono/mono/subscribers","subscription_url":"https://api.github.com/repos/mono/mono/subscription","commits_url":"https://api.github.com/repos/mono/mono/commits{/sha}","git_commits_url":"https://api.github.com/repos/mono/mono/git/commits{/sha}","comments_url":"https://api.github.com/repos/mono/mono/comments{/number}","issue_comment_url":"https://api.github.com/repos/mono/mono/issues/comments{/number}","contents_url":"https://api.github.com/repos/mono/mono/contents/{+path}","compare_url":"https://api.github.com/repos/mono/mono/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mono/mono/merges","archive_url":"https://api.github.com/repos/mono/mono/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mono/mono/downloads","issues_url":"https://api.github.com/repos/mono/mono/issues{/number}","pulls_url":"https://api.github.com/repos/mono/mono/pulls{/number}","milestones_url":"https://api.github.com/repos/mono/mono/milestones{/number}","notifications_url":"https://api.github.com/repos/mono/mono/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mono/mono/labels{/name}","releases_url":"https://api.github.com/repos/mono/mono/releases{/id}","created_at":"2010-07-22T18:06:36Z","updated_at":"2016-01-12T20:09:27Z","pushed_at":"2016-01-13T01:46:53Z","git_url":"git://github.com/mono/mono.git","ssh_url":"git@github.com:mono/mono.git","clone_url":"https://github.com/mono/mono.git","svn_url":"https://github.com/mono/mono","homepage":"http://www.mono-project.com/","size":444769,"stargazers_count":4197,"watchers_count":4197,"language":"C#","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":2055,"mirror_url":null,"open_issues_count":123,"forks":2055,"open_issues":123,"watchers":4197,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mono/mono/pulls/2422"},"html":{"href":"https://github.com/mono/mono/pull/2422"},"issue":{"href":"https://api.github.com/repos/mono/mono/issues/2422"},"comments":{"href":"https://api.github.com/repos/mono/mono/issues/2422/comments"},"review_comments":{"href":"https://api.github.com/repos/mono/mono/pulls/2422/comments"},"review_comment":{"href":"https://api.github.com/repos/mono/mono/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mono/mono/pulls/2422/commits"},"statuses":{"href":"https://api.github.com/repos/mono/mono/statuses/2fa5d255abb2f1685282893cb8e2c57234540278"}}}}