{"action":"created","issue":{"url":"https://api.github.com/repos/AdoptOpenJDK/jitwatch/issues/147","labels_url":"https://api.github.com/repos/AdoptOpenJDK/jitwatch/issues/147/labels{/name}","comments_url":"https://api.github.com/repos/AdoptOpenJDK/jitwatch/issues/147/comments","events_url":"https://api.github.com/repos/AdoptOpenJDK/jitwatch/issues/147/events","html_url":"https://github.com/AdoptOpenJDK/jitwatch/issues/147","id":53974502,"number":147,"title":"Support <fragment> in LogCompilation output or add delay to Sandbox main()","user":{"login":"chriswhocodes","id":1898314,"avatar_url":"https://avatars.githubusercontent.com/u/1898314?v=3","gravatar_id":"","url":"https://api.github.com/users/chriswhocodes","html_url":"https://github.com/chriswhocodes","followers_url":"https://api.github.com/users/chriswhocodes/followers","following_url":"https://api.github.com/users/chriswhocodes/following{/other_user}","gists_url":"https://api.github.com/users/chriswhocodes/gists{/gist_id}","starred_url":"https://api.github.com/users/chriswhocodes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriswhocodes/subscriptions","organizations_url":"https://api.github.com/users/chriswhocodes/orgs","repos_url":"https://api.github.com/users/chriswhocodes/repos","events_url":"https://api.github.com/users/chriswhocodes/events{/privacy}","received_events_url":"https://api.github.com/users/chriswhocodes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/AdoptOpenJDK/jitwatch/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"chriswhocodes","id":1898314,"avatar_url":"https://avatars.githubusercontent.com/u/1898314?v=3","gravatar_id":"","url":"https://api.github.com/users/chriswhocodes","html_url":"https://github.com/chriswhocodes","followers_url":"https://api.github.com/users/chriswhocodes/followers","following_url":"https://api.github.com/users/chriswhocodes/following{/other_user}","gists_url":"https://api.github.com/users/chriswhocodes/gists{/gist_id}","starred_url":"https://api.github.com/users/chriswhocodes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriswhocodes/subscriptions","organizations_url":"https://api.github.com/users/chriswhocodes/orgs","repos_url":"https://api.github.com/users/chriswhocodes/repos","events_url":"https://api.github.com/users/chriswhocodes/events{/privacy}","received_events_url":"https://api.github.com/users/chriswhocodes/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-01-10T22:53:40Z","updated_at":"2015-01-11T01:21:41Z","closed_at":"2015-01-11T01:11:07Z","body":"*headdesk*\r\nSometimes the VM terminates before it has written the LogCompilation output so a `<fragment>` tag is emitted which is not currently parsed in JITWatch so it can miss out parts of the log.\r\n\r\nThis is especially bad when the Sandbox test is just a main() and one method since the `<task compile_id=...` is often in the fragment and it looks like nothing was JIT compiled.\r\n\r\nOptions are:\r\n1) Parse the fragment as best I can in TagProcessor class (Hard).\r\n2) Insert a Thread.sleep() in the main() method when the language is Java (Hacky).\r\n"},"comment":{"url":"https://api.github.com/repos/AdoptOpenJDK/jitwatch/issues/comments/69479601","html_url":"https://github.com/AdoptOpenJDK/jitwatch/issues/147#issuecomment-69479601","issue_url":"https://api.github.com/repos/AdoptOpenJDK/jitwatch/issues/147","id":69479601,"user":{"login":"chriswhocodes","id":1898314,"avatar_url":"https://avatars.githubusercontent.com/u/1898314?v=3","gravatar_id":"","url":"https://api.github.com/users/chriswhocodes","html_url":"https://github.com/chriswhocodes","followers_url":"https://api.github.com/users/chriswhocodes/followers","following_url":"https://api.github.com/users/chriswhocodes/following{/other_user}","gists_url":"https://api.github.com/users/chriswhocodes/gists{/gist_id}","starred_url":"https://api.github.com/users/chriswhocodes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriswhocodes/subscriptions","organizations_url":"https://api.github.com/users/chriswhocodes/orgs","repos_url":"https://api.github.com/users/chriswhocodes/repos","events_url":"https://api.github.com/users/chriswhocodes/events{/privacy}","received_events_url":"https://api.github.com/users/chriswhocodes/received_events","type":"User","site_admin":false},"created_at":"2015-01-11T01:21:41Z","updated_at":"2015-01-11T01:21:41Z","body":"@ksrenev (on Twitter) suggested using -XX:-BackgroundCompilation to prevent background JIT compilation. A quick search shows this is widely used when microbenchmarking and it seems to completely eliminate the problem so I'll add this to the Sandbox config as a checkbox, default enabled."}}