{"action":"created","comment":{"url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/pulls/comments/294062909","pull_request_review_id":250210550,"id":294062909,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI5NDA2MjkwOQ==","diff_hunk":"@@ -316,6 +316,34 @@ int CPUPerformanceInterface::CPUPerformance::context_switch_rate(double* rate) {\n   _jvm_context_switches = jvm_context_switches;\n   _total_csr_nanos = total_csr_nanos;\n \n+  return result;\n+#elif defined(__FreeBSD__)\n+  long jvm_context_switches;\n+  size_t length = sizeof(jvm_context_switches);\n+  if (sysctlbyname(\"vm.stats.sys.v_swtch\", &jvm_context_switches, &length, NULL, 0) != 0) {\n+    return OS_ERR;\n+  }\n+\n+  int result = OS_OK;","path":"src/hotspot/os/bsd/os_perf_bsd.cpp","position":12,"original_position":12,"commit_id":"1edeaf5b3e937d45548a487c2fd35accf787fce9","original_commit_id":"1edeaf5b3e937d45548a487c2fd35accf787fce9","user":{"login":"battleblow","id":14287105,"node_id":"MDQ6VXNlcjE0Mjg3MTA1","avatar_url":"https://avatars1.githubusercontent.com/u/14287105?v=4","gravatar_id":"","url":"https://api.github.com/users/battleblow","html_url":"https://github.com/battleblow","followers_url":"https://api.github.com/users/battleblow/followers","following_url":"https://api.github.com/users/battleblow/following{/other_user}","gists_url":"https://api.github.com/users/battleblow/gists{/gist_id}","starred_url":"https://api.github.com/users/battleblow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/battleblow/subscriptions","organizations_url":"https://api.github.com/users/battleblow/orgs","repos_url":"https://api.github.com/users/battleblow/repos","events_url":"https://api.github.com/users/battleblow/events{/privacy}","received_events_url":"https://api.github.com/users/battleblow/received_events","type":"User","site_admin":false},"body":"In my local change all of this is shared with a minor rearrangement.","created_at":"2019-06-15T23:56:57Z","updated_at":"2019-06-15T23:57:46Z","html_url":"https://github.com/battleblow/openjdk-jdk11u/pull/31#discussion_r294062909","pull_request_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/pulls/31","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/battleblow/openjdk-jdk11u/pulls/comments/294062909"},"html":{"href":"https://github.com/battleblow/openjdk-jdk11u/pull/31#discussion_r294062909"},"pull_request":{"href":"https://api.github.com/repos/battleblow/openjdk-jdk11u/pulls/31"}}},"pull_request":{"url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/pulls/31","id":288535749,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjg4NTM1NzQ5","html_url":"https://github.com/battleblow/openjdk-jdk11u/pull/31","diff_url":"https://github.com/battleblow/openjdk-jdk11u/pull/31.diff","patch_url":"https://github.com/battleblow/openjdk-jdk11u/pull/31.patch","issue_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/issues/31","number":31,"state":"open","locked":false,"title":"Hotspot/FreeBSD cpu context switches stats","user":{"login":"devnexen","id":4922778,"node_id":"MDQ6VXNlcjQ5MjI3Nzg=","avatar_url":"https://avatars3.githubusercontent.com/u/4922778?v=4","gravatar_id":"","url":"https://api.github.com/users/devnexen","html_url":"https://github.com/devnexen","followers_url":"https://api.github.com/users/devnexen/followers","following_url":"https://api.github.com/users/devnexen/following{/other_user}","gists_url":"https://api.github.com/users/devnexen/gists{/gist_id}","starred_url":"https://api.github.com/users/devnexen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devnexen/subscriptions","organizations_url":"https://api.github.com/users/devnexen/orgs","repos_url":"https://api.github.com/users/devnexen/repos","events_url":"https://api.github.com/users/devnexen/events{/privacy}","received_events_url":"https://api.github.com/users/devnexen/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-06-15T06:39:28Z","updated_at":"2019-06-15T23:57:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"02b601d76f5c3fff872d4239d9914c58047eb6b0","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/pulls/31/commits","review_comments_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/pulls/31/comments","review_comment_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/pulls/comments{/number}","comments_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/issues/31/comments","statuses_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/statuses/1edeaf5b3e937d45548a487c2fd35accf787fce9","head":{"label":"devnexen:hotspot_fbsd_ctx_switch_rate","ref":"hotspot_fbsd_ctx_switch_rate","sha":"1edeaf5b3e937d45548a487c2fd35accf787fce9","user":{"login":"devnexen","id":4922778,"node_id":"MDQ6VXNlcjQ5MjI3Nzg=","avatar_url":"https://avatars3.githubusercontent.com/u/4922778?v=4","gravatar_id":"","url":"https://api.github.com/users/devnexen","html_url":"https://github.com/devnexen","followers_url":"https://api.github.com/users/devnexen/followers","following_url":"https://api.github.com/users/devnexen/following{/other_user}","gists_url":"https://api.github.com/users/devnexen/gists{/gist_id}","starred_url":"https://api.github.com/users/devnexen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devnexen/subscriptions","organizations_url":"https://api.github.com/users/devnexen/orgs","repos_url":"https://api.github.com/users/devnexen/repos","events_url":"https://api.github.com/users/devnexen/events{/privacy}","received_events_url":"https://api.github.com/users/devnexen/received_events","type":"User","site_admin":false},"repo":{"id":190144118,"node_id":"MDEwOlJlcG9zaXRvcnkxOTAxNDQxMTg=","name":"openjdk-jdk11u","full_name":"devnexen/openjdk-jdk11u","private":false,"owner":{"login":"devnexen","id":4922778,"node_id":"MDQ6VXNlcjQ5MjI3Nzg=","avatar_url":"https://avatars3.githubusercontent.com/u/4922778?v=4","gravatar_id":"","url":"https://api.github.com/users/devnexen","html_url":"https://github.com/devnexen","followers_url":"https://api.github.com/users/devnexen/followers","following_url":"https://api.github.com/users/devnexen/following{/other_user}","gists_url":"https://api.github.com/users/devnexen/gists{/gist_id}","starred_url":"https://api.github.com/users/devnexen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devnexen/subscriptions","organizations_url":"https://api.github.com/users/devnexen/orgs","repos_url":"https://api.github.com/users/devnexen/repos","events_url":"https://api.github.com/users/devnexen/events{/privacy}","received_events_url":"https://api.github.com/users/devnexen/received_events","type":"User","site_admin":false},"html_url":"https://github.com/devnexen/openjdk-jdk11u","description":"BSD port of OpenJDK 11","fork":true,"url":"https://api.github.com/repos/devnexen/openjdk-jdk11u","forks_url":"https://api.github.com/repos/devnexen/openjdk-jdk11u/forks","keys_url":"https://api.github.com/repos/devnexen/openjdk-jdk11u/keys{/key_id}","collaborators_url":"https://api.github.com/repos/devnexen/openjdk-jdk11u/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/devnexen/openjdk-jdk11u/teams","hooks_url":"https://api.github.com/repos/devnexen/openjdk-jdk11u/hooks","issue_events_url":"https://api.github.com/repos/devnexen/openjdk-jdk11u/issues/events{/number}","events_url":"https://api.github.com/repos/devnexen/openjdk-jdk11u/events","assignees_url":"https://api.github.com/repos/devnexen/openjdk-jdk11u/assignees{/user}","branches_url":"https://api.github.com/repos/devnexen/openjdk-jdk11u/branches{/branch}","tags_url":"https://api.github.com/repos/devnexen/openjdk-jdk11u/tags","blobs_url":"https://api.github.com/repos/devnexen/openjdk-jdk11u/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/devnexen/openjdk-jdk11u/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/devnexen/openjdk-jdk11u/git/refs{/sha}","trees_url":"https://api.github.com/repos/devnexen/openjdk-jdk11u/git/trees{/sha}","statuses_url":"https://api.github.com/repos/devnexen/openjdk-jdk11u/statuses/{sha}","languages_url":"https://api.github.com/repos/devnexen/openjdk-jdk11u/languages","stargazers_url":"https://api.github.com/repos/devnexen/openjdk-jdk11u/stargazers","contributors_url":"https://api.github.com/repos/devnexen/openjdk-jdk11u/contributors","subscribers_url":"https://api.github.com/repos/devnexen/openjdk-jdk11u/subscribers","subscription_url":"https://api.github.com/repos/devnexen/openjdk-jdk11u/subscription","commits_url":"https://api.github.com/repos/devnexen/openjdk-jdk11u/commits{/sha}","git_commits_url":"https://api.github.com/repos/devnexen/openjdk-jdk11u/git/commits{/sha}","comments_url":"https://api.github.com/repos/devnexen/openjdk-jdk11u/comments{/number}","issue_comment_url":"https://api.github.com/repos/devnexen/openjdk-jdk11u/issues/comments{/number}","contents_url":"https://api.github.com/repos/devnexen/openjdk-jdk11u/contents/{+path}","compare_url":"https://api.github.com/repos/devnexen/openjdk-jdk11u/compare/{base}...{head}","merges_url":"https://api.github.com/repos/devnexen/openjdk-jdk11u/merges","archive_url":"https://api.github.com/repos/devnexen/openjdk-jdk11u/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/devnexen/openjdk-jdk11u/downloads","issues_url":"https://api.github.com/repos/devnexen/openjdk-jdk11u/issues{/number}","pulls_url":"https://api.github.com/repos/devnexen/openjdk-jdk11u/pulls{/number}","milestones_url":"https://api.github.com/repos/devnexen/openjdk-jdk11u/milestones{/number}","notifications_url":"https://api.github.com/repos/devnexen/openjdk-jdk11u/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/devnexen/openjdk-jdk11u/labels{/name}","releases_url":"https://api.github.com/repos/devnexen/openjdk-jdk11u/releases{/id}","deployments_url":"https://api.github.com/repos/devnexen/openjdk-jdk11u/deployments","created_at":"2019-06-04T06:40:05Z","updated_at":"2019-06-04T06:44:27Z","pushed_at":"2019-06-15T06:39:09Z","git_url":"git://github.com/devnexen/openjdk-jdk11u.git","ssh_url":"git@github.com:devnexen/openjdk-jdk11u.git","clone_url":"https://github.com/devnexen/openjdk-jdk11u.git","svn_url":"https://github.com/devnexen/openjdk-jdk11u","homepage":"","size":2047207,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"battleblow:bsd-port","ref":"bsd-port","sha":"e7aa5d51216cf5f258c252f786fd0520f8d7fde4","user":{"login":"battleblow","id":14287105,"node_id":"MDQ6VXNlcjE0Mjg3MTA1","avatar_url":"https://avatars1.githubusercontent.com/u/14287105?v=4","gravatar_id":"","url":"https://api.github.com/users/battleblow","html_url":"https://github.com/battleblow","followers_url":"https://api.github.com/users/battleblow/followers","following_url":"https://api.github.com/users/battleblow/following{/other_user}","gists_url":"https://api.github.com/users/battleblow/gists{/gist_id}","starred_url":"https://api.github.com/users/battleblow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/battleblow/subscriptions","organizations_url":"https://api.github.com/users/battleblow/orgs","repos_url":"https://api.github.com/users/battleblow/repos","events_url":"https://api.github.com/users/battleblow/events{/privacy}","received_events_url":"https://api.github.com/users/battleblow/received_events","type":"User","site_admin":false},"repo":{"id":170956352,"node_id":"MDEwOlJlcG9zaXRvcnkxNzA5NTYzNTI=","name":"openjdk-jdk11u","full_name":"battleblow/openjdk-jdk11u","private":false,"owner":{"login":"battleblow","id":14287105,"node_id":"MDQ6VXNlcjE0Mjg3MTA1","avatar_url":"https://avatars1.githubusercontent.com/u/14287105?v=4","gravatar_id":"","url":"https://api.github.com/users/battleblow","html_url":"https://github.com/battleblow","followers_url":"https://api.github.com/users/battleblow/followers","following_url":"https://api.github.com/users/battleblow/following{/other_user}","gists_url":"https://api.github.com/users/battleblow/gists{/gist_id}","starred_url":"https://api.github.com/users/battleblow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/battleblow/subscriptions","organizations_url":"https://api.github.com/users/battleblow/orgs","repos_url":"https://api.github.com/users/battleblow/repos","events_url":"https://api.github.com/users/battleblow/events{/privacy}","received_events_url":"https://api.github.com/users/battleblow/received_events","type":"User","site_admin":false},"html_url":"https://github.com/battleblow/openjdk-jdk11u","description":"BSD port of OpenJDK 11","fork":true,"url":"https://api.github.com/repos/battleblow/openjdk-jdk11u","forks_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/forks","keys_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/keys{/key_id}","collaborators_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/teams","hooks_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/hooks","issue_events_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/issues/events{/number}","events_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/events","assignees_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/assignees{/user}","branches_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/branches{/branch}","tags_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/tags","blobs_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/git/refs{/sha}","trees_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/git/trees{/sha}","statuses_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/statuses/{sha}","languages_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/languages","stargazers_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/stargazers","contributors_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/contributors","subscribers_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/subscribers","subscription_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/subscription","commits_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/commits{/sha}","git_commits_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/git/commits{/sha}","comments_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/comments{/number}","issue_comment_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/issues/comments{/number}","contents_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/contents/{+path}","compare_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/compare/{base}...{head}","merges_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/merges","archive_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/downloads","issues_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/issues{/number}","pulls_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/pulls{/number}","milestones_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/milestones{/number}","notifications_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/labels{/name}","releases_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/releases{/id}","deployments_url":"https://api.github.com/repos/battleblow/openjdk-jdk11u/deployments","created_at":"2019-02-16T03:02:42Z","updated_at":"2019-06-09T11:20:44Z","pushed_at":"2019-06-15T15:20:45Z","git_url":"git://github.com/battleblow/openjdk-jdk11u.git","ssh_url":"git@github.com:battleblow/openjdk-jdk11u.git","clone_url":"https://github.com/battleblow/openjdk-jdk11u.git","svn_url":"https://github.com/battleblow/openjdk-jdk11u","homepage":"","size":2047195,"stargazers_count":5,"watchers_count":5,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":4,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":3,"open_issues":4,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/battleblow/openjdk-jdk11u/pulls/31"},"html":{"href":"https://github.com/battleblow/openjdk-jdk11u/pull/31"},"issue":{"href":"https://api.github.com/repos/battleblow/openjdk-jdk11u/issues/31"},"comments":{"href":"https://api.github.com/repos/battleblow/openjdk-jdk11u/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/battleblow/openjdk-jdk11u/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/battleblow/openjdk-jdk11u/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/battleblow/openjdk-jdk11u/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/battleblow/openjdk-jdk11u/statuses/1edeaf5b3e937d45548a487c2fd35accf787fce9"}},"author_association":"NONE"}}
{"actor":{"display_login":"battleblow"}}