{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/ChakraCore/pulls/comments/118596511","pull_request_review_id":40405607,"id":118596511,"diff_hunk":"@@ -2233,9 +2240,26 @@ void BailOutRecord::ScheduleFunctionCodeGen(Js::ScriptFunction * function, Js::S\n         RejitReasonNames[rejitReason], reThunk ? trueString : falseString);\n \n #ifdef REJIT_STATS\n-    if(PHASE_STATS(Js::ReJITPhase, executeFunction))\n+    executeFunction->GetScriptContext()->LogBailout(executeFunction, bailOutKind);\n+    if (bailOutRecord->bailOutCount > 500)\n     {\n-        executeFunction->GetScriptContext()->LogBailout(executeFunction, bailOutKind);\n+        Js::ScriptContext* scriptContext = executeFunction->GetScriptContext();\n+        auto bailoutReasonCountsCap = scriptContext->bailoutReasonCountsCap;\n+        if (bailoutReasonCountsCap != nullptr)\n+        {\n+            if (bailoutReasonCountsCap->ContainsKey(bailOutKind)) {","path":"lib/Backend/BailOut.cpp","position":27,"original_position":27,"commit_id":"e5454f3597d67c69f74beeeaa8bd299dab278de9","original_commit_id":"e5454f3597d67c69f74beeeaa8bd299dab278de9","user":{"login":"agarwal-sandeep","id":12059066,"avatar_url":"https://avatars0.githubusercontent.com/u/12059066?v=3","gravatar_id":"","url":"https://api.github.com/users/agarwal-sandeep","html_url":"https://github.com/agarwal-sandeep","followers_url":"https://api.github.com/users/agarwal-sandeep/followers","following_url":"https://api.github.com/users/agarwal-sandeep/following{/other_user}","gists_url":"https://api.github.com/users/agarwal-sandeep/gists{/gist_id}","starred_url":"https://api.github.com/users/agarwal-sandeep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agarwal-sandeep/subscriptions","organizations_url":"https://api.github.com/users/agarwal-sandeep/orgs","repos_url":"https://api.github.com/users/agarwal-sandeep/repos","events_url":"https://api.github.com/users/agarwal-sandeep/events{/privacy}","received_events_url":"https://api.github.com/users/agarwal-sandeep/received_events","type":"User","site_admin":false},"body":">if (bailoutReasonCountsCap->ContainsKey(bailOutKind)) { [](start = 12, length = 55)\r\n\r\nDuplicate if check.","created_at":"2017-05-25T22:08:50Z","updated_at":"2017-05-25T22:08:50Z","html_url":"https://github.com/Microsoft/ChakraCore/pull/3052#discussion_r118596511","pull_request_url":"https://api.github.com/repos/Microsoft/ChakraCore/pulls/3052","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/ChakraCore/pulls/comments/118596511"},"html":{"href":"https://github.com/Microsoft/ChakraCore/pull/3052#discussion_r118596511"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/ChakraCore/pulls/3052"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/ChakraCore/pulls/3052","id":122535762,"html_url":"https://github.com/Microsoft/ChakraCore/pull/3052","diff_url":"https://github.com/Microsoft/ChakraCore/pull/3052.diff","patch_url":"https://github.com/Microsoft/ChakraCore/pull/3052.patch","issue_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/3052","number":3052,"state":"open","locked":false,"title":"Infinite Bailout/Rejit Data","user":{"login":"Penguinwizzard","id":69503,"avatar_url":"https://avatars3.githubusercontent.com/u/69503?v=3","gravatar_id":"","url":"https://api.github.com/users/Penguinwizzard","html_url":"https://github.com/Penguinwizzard","followers_url":"https://api.github.com/users/Penguinwizzard/followers","following_url":"https://api.github.com/users/Penguinwizzard/following{/other_user}","gists_url":"https://api.github.com/users/Penguinwizzard/gists{/gist_id}","starred_url":"https://api.github.com/users/Penguinwizzard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Penguinwizzard/subscriptions","organizations_url":"https://api.github.com/users/Penguinwizzard/orgs","repos_url":"https://api.github.com/users/Penguinwizzard/repos","events_url":"https://api.github.com/users/Penguinwizzard/events{/privacy}","received_events_url":"https://api.github.com/users/Penguinwizzard/received_events","type":"User","site_admin":false},"body":"Set of commits to improve our ability to identify situations in which we hit an unlimited series of bailouts or rejits - important for perf and battery usage.\r\n\r\nNote: back-porting this due to incorrect initial branch target.","created_at":"2017-05-25T22:02:58Z","updated_at":"2017-05-25T22:08:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c5f6610e9ab2f9f0a95bfaf2c757fea0ac5b2c9c","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/ChakraCore/pulls/3052/commits","review_comments_url":"https://api.github.com/repos/Microsoft/ChakraCore/pulls/3052/comments","review_comment_url":"https://api.github.com/repos/Microsoft/ChakraCore/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/3052/comments","statuses_url":"https://api.github.com/repos/Microsoft/ChakraCore/statuses/e5454f3597d67c69f74beeeaa8bd299dab278de9","head":{"label":"Penguinwizzard:bailoutrejitback","ref":"bailoutrejitback","sha":"e5454f3597d67c69f74beeeaa8bd299dab278de9","user":{"login":"Penguinwizzard","id":69503,"avatar_url":"https://avatars3.githubusercontent.com/u/69503?v=3","gravatar_id":"","url":"https://api.github.com/users/Penguinwizzard","html_url":"https://github.com/Penguinwizzard","followers_url":"https://api.github.com/users/Penguinwizzard/followers","following_url":"https://api.github.com/users/Penguinwizzard/following{/other_user}","gists_url":"https://api.github.com/users/Penguinwizzard/gists{/gist_id}","starred_url":"https://api.github.com/users/Penguinwizzard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Penguinwizzard/subscriptions","organizations_url":"https://api.github.com/users/Penguinwizzard/orgs","repos_url":"https://api.github.com/users/Penguinwizzard/repos","events_url":"https://api.github.com/users/Penguinwizzard/events{/privacy}","received_events_url":"https://api.github.com/users/Penguinwizzard/received_events","type":"User","site_admin":false},"repo":{"id":68159295,"name":"ChakraCore","full_name":"Penguinwizzard/ChakraCore","owner":{"login":"Penguinwizzard","id":69503,"avatar_url":"https://avatars3.githubusercontent.com/u/69503?v=3","gravatar_id":"","url":"https://api.github.com/users/Penguinwizzard","html_url":"https://github.com/Penguinwizzard","followers_url":"https://api.github.com/users/Penguinwizzard/followers","following_url":"https://api.github.com/users/Penguinwizzard/following{/other_user}","gists_url":"https://api.github.com/users/Penguinwizzard/gists{/gist_id}","starred_url":"https://api.github.com/users/Penguinwizzard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Penguinwizzard/subscriptions","organizations_url":"https://api.github.com/users/Penguinwizzard/orgs","repos_url":"https://api.github.com/users/Penguinwizzard/repos","events_url":"https://api.github.com/users/Penguinwizzard/events{/privacy}","received_events_url":"https://api.github.com/users/Penguinwizzard/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Penguinwizzard/ChakraCore","description":"ChakraCore is the core part of the Chakra Javascript engine that powers Microsoft Edge","fork":true,"url":"https://api.github.com/repos/Penguinwizzard/ChakraCore","forks_url":"https://api.github.com/repos/Penguinwizzard/ChakraCore/forks","keys_url":"https://api.github.com/repos/Penguinwizzard/ChakraCore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Penguinwizzard/ChakraCore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Penguinwizzard/ChakraCore/teams","hooks_url":"https://api.github.com/repos/Penguinwizzard/ChakraCore/hooks","issue_events_url":"https://api.github.com/repos/Penguinwizzard/ChakraCore/issues/events{/number}","events_url":"https://api.github.com/repos/Penguinwizzard/ChakraCore/events","assignees_url":"https://api.github.com/repos/Penguinwizzard/ChakraCore/assignees{/user}","branches_url":"https://api.github.com/repos/Penguinwizzard/ChakraCore/branches{/branch}","tags_url":"https://api.github.com/repos/Penguinwizzard/ChakraCore/tags","blobs_url":"https://api.github.com/repos/Penguinwizzard/ChakraCore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Penguinwizzard/ChakraCore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Penguinwizzard/ChakraCore/git/refs{/sha}","trees_url":"https://api.github.com/repos/Penguinwizzard/ChakraCore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Penguinwizzard/ChakraCore/statuses/{sha}","languages_url":"https://api.github.com/repos/Penguinwizzard/ChakraCore/languages","stargazers_url":"https://api.github.com/repos/Penguinwizzard/ChakraCore/stargazers","contributors_url":"https://api.github.com/repos/Penguinwizzard/ChakraCore/contributors","subscribers_url":"https://api.github.com/repos/Penguinwizzard/ChakraCore/subscribers","subscription_url":"https://api.github.com/repos/Penguinwizzard/ChakraCore/subscription","commits_url":"https://api.github.com/repos/Penguinwizzard/ChakraCore/commits{/sha}","git_commits_url":"https://api.github.com/repos/Penguinwizzard/ChakraCore/git/commits{/sha}","comments_url":"https://api.github.com/repos/Penguinwizzard/ChakraCore/comments{/number}","issue_comment_url":"https://api.github.com/repos/Penguinwizzard/ChakraCore/issues/comments{/number}","contents_url":"https://api.github.com/repos/Penguinwizzard/ChakraCore/contents/{+path}","compare_url":"https://api.github.com/repos/Penguinwizzard/ChakraCore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Penguinwizzard/ChakraCore/merges","archive_url":"https://api.github.com/repos/Penguinwizzard/ChakraCore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Penguinwizzard/ChakraCore/downloads","issues_url":"https://api.github.com/repos/Penguinwizzard/ChakraCore/issues{/number}","pulls_url":"https://api.github.com/repos/Penguinwizzard/ChakraCore/pulls{/number}","milestones_url":"https://api.github.com/repos/Penguinwizzard/ChakraCore/milestones{/number}","notifications_url":"https://api.github.com/repos/Penguinwizzard/ChakraCore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Penguinwizzard/ChakraCore/labels{/name}","releases_url":"https://api.github.com/repos/Penguinwizzard/ChakraCore/releases{/id}","deployments_url":"https://api.github.com/repos/Penguinwizzard/ChakraCore/deployments","created_at":"2016-09-14T00:39:02Z","updated_at":"2016-09-14T00:39:23Z","pushed_at":"2017-05-25T22:02:58Z","git_url":"git://github.com/Penguinwizzard/ChakraCore.git","ssh_url":"git@github.com:Penguinwizzard/ChakraCore.git","clone_url":"https://github.com/Penguinwizzard/ChakraCore.git","svn_url":"https://github.com/Penguinwizzard/ChakraCore","homepage":null,"size":112412,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"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":"Microsoft:release/1.6","ref":"release/1.6","sha":"78d1664b06937b1f2cbf5606b1b0ec105678945b","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars1.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":49086513,"name":"ChakraCore","full_name":"Microsoft/ChakraCore","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars1.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/ChakraCore","description":"ChakraCore is the core part of the Chakra Javascript engine that powers Microsoft Edge","fork":false,"url":"https://api.github.com/repos/Microsoft/ChakraCore","forks_url":"https://api.github.com/repos/Microsoft/ChakraCore/forks","keys_url":"https://api.github.com/repos/Microsoft/ChakraCore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/ChakraCore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/ChakraCore/teams","hooks_url":"https://api.github.com/repos/Microsoft/ChakraCore/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/ChakraCore/events","assignees_url":"https://api.github.com/repos/Microsoft/ChakraCore/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/ChakraCore/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/ChakraCore/tags","blobs_url":"https://api.github.com/repos/Microsoft/ChakraCore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/ChakraCore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/ChakraCore/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/ChakraCore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/ChakraCore/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/ChakraCore/languages","stargazers_url":"https://api.github.com/repos/Microsoft/ChakraCore/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/ChakraCore/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/ChakraCore/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/ChakraCore/subscription","commits_url":"https://api.github.com/repos/Microsoft/ChakraCore/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/ChakraCore/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/ChakraCore/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/ChakraCore/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/ChakraCore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/ChakraCore/merges","archive_url":"https://api.github.com/repos/Microsoft/ChakraCore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/ChakraCore/downloads","issues_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/ChakraCore/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/ChakraCore/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/ChakraCore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/ChakraCore/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/ChakraCore/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/ChakraCore/deployments","created_at":"2016-01-05T19:05:31Z","updated_at":"2017-05-25T21:05:04Z","pushed_at":"2017-05-25T22:03:44Z","git_url":"git://github.com/Microsoft/ChakraCore.git","ssh_url":"git@github.com:Microsoft/ChakraCore.git","clone_url":"https://github.com/Microsoft/ChakraCore.git","svn_url":"https://github.com/Microsoft/ChakraCore","homepage":"","size":68089,"stargazers_count":6204,"watchers_count":6204,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":737,"mirror_url":null,"open_issues_count":296,"forks":737,"open_issues":296,"watchers":6204,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/ChakraCore/pulls/3052"},"html":{"href":"https://github.com/Microsoft/ChakraCore/pull/3052"},"issue":{"href":"https://api.github.com/repos/Microsoft/ChakraCore/issues/3052"},"comments":{"href":"https://api.github.com/repos/Microsoft/ChakraCore/issues/3052/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/ChakraCore/pulls/3052/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/ChakraCore/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/ChakraCore/pulls/3052/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/ChakraCore/statuses/e5454f3597d67c69f74beeeaa8bd299dab278de9"}}}}
{"actor":{"display_login":"agarwal-sandeep"}}