{"action":"created","comment":{"url":"https://api.github.com/repos/graalvm/truffleruby/pulls/comments/121229539","pull_request_review_id":43269325,"id":121229539,"diff_hunk":"@@ -89,35 +93,31 @@\n \n     private final NativePlatform nativePlatform;\n     private final CoreLibrary coreLibrary;\n-    private final CoreMethods coreMethods;\n+    private CoreMethods coreMethods;\n     private final ThreadManager threadManager;\n     private final LexicalScope rootLexicalScope;\n     private final CoverageManager coverageManager;\n     private ConsoleHolder consoleHolder;\n \n     private final Object classVariableDefinitionLock = new Object();\n \n-    private String currentDirectory;\n-\n-    public static ThreadLocal<RubyContext> contextsBeingCreated = new ThreadLocal<>();\n-\n-    public RubyContext(TruffleLanguage.Env env) {\n-        contextsBeingCreated.set(this);\n-\n-        try {\n-            this.env = env;\n+    public RubyContext(RubyLanguage language, TruffleLanguage.Env env) {\n+        if (FIRST_INSTANCE == null) {","path":"src/main/java/org/truffleruby/RubyContext.java","position":43,"original_position":43,"commit_id":"277971d7d02f01ef4af7b8703cae392feb0b20ab","original_commit_id":"277971d7d02f01ef4af7b8703cae392feb0b20ab","user":{"login":"chrisseaton","id":341094,"avatar_url":"https://avatars1.githubusercontent.com/u/341094?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisseaton","html_url":"https://github.com/chrisseaton","followers_url":"https://api.github.com/users/chrisseaton/followers","following_url":"https://api.github.com/users/chrisseaton/following{/other_user}","gists_url":"https://api.github.com/users/chrisseaton/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisseaton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisseaton/subscriptions","organizations_url":"https://api.github.com/users/chrisseaton/orgs","repos_url":"https://api.github.com/users/chrisseaton/repos","events_url":"https://api.github.com/users/chrisseaton/events{/privacy}","received_events_url":"https://api.github.com/users/chrisseaton/received_events","type":"User","site_admin":false},"body":"Only theoretically. It'll be fixed before it becomes a practical problem.","created_at":"2017-06-09T21:50:52Z","updated_at":"2017-06-09T21:50:52Z","html_url":"https://github.com/graalvm/truffleruby/pull/157#discussion_r121229539","pull_request_url":"https://api.github.com/repos/graalvm/truffleruby/pulls/157","_links":{"self":{"href":"https://api.github.com/repos/graalvm/truffleruby/pulls/comments/121229539"},"html":{"href":"https://github.com/graalvm/truffleruby/pull/157#discussion_r121229539"},"pull_request":{"href":"https://api.github.com/repos/graalvm/truffleruby/pulls/157"}}},"pull_request":{"url":"https://api.github.com/repos/graalvm/truffleruby/pulls/157","id":124930320,"html_url":"https://github.com/graalvm/truffleruby/pull/157","diff_url":"https://github.com/graalvm/truffleruby/pull/157.diff","patch_url":"https://github.com/graalvm/truffleruby/pull/157.patch","issue_url":"https://api.github.com/repos/graalvm/truffleruby/issues/157","number":157,"state":"open","locked":false,"title":"Fix Truffle API deprecations","user":{"login":"chrisseaton","id":341094,"avatar_url":"https://avatars1.githubusercontent.com/u/341094?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisseaton","html_url":"https://github.com/chrisseaton","followers_url":"https://api.github.com/users/chrisseaton/followers","following_url":"https://api.github.com/users/chrisseaton/following{/other_user}","gists_url":"https://api.github.com/users/chrisseaton/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisseaton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisseaton/subscriptions","organizations_url":"https://api.github.com/users/chrisseaton/orgs","repos_url":"https://api.github.com/users/chrisseaton/repos","events_url":"https://api.github.com/users/chrisseaton/events{/privacy}","received_events_url":"https://api.github.com/users/chrisseaton/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-06-09T19:00:39Z","updated_at":"2017-06-09T21:50:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cca295390bdd97463225be238dcbf80bf4b57b46","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/graalvm/truffleruby/pulls/157/commits","review_comments_url":"https://api.github.com/repos/graalvm/truffleruby/pulls/157/comments","review_comment_url":"https://api.github.com/repos/graalvm/truffleruby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/graalvm/truffleruby/issues/157/comments","statuses_url":"https://api.github.com/repos/graalvm/truffleruby/statuses/277971d7d02f01ef4af7b8703cae392feb0b20ab","head":{"label":"graalvm:deprecations","ref":"deprecations","sha":"277971d7d02f01ef4af7b8703cae392feb0b20ab","user":{"login":"graalvm","id":10176827,"avatar_url":"https://avatars0.githubusercontent.com/u/10176827?v=3","gravatar_id":"","url":"https://api.github.com/users/graalvm","html_url":"https://github.com/graalvm","followers_url":"https://api.github.com/users/graalvm/followers","following_url":"https://api.github.com/users/graalvm/following{/other_user}","gists_url":"https://api.github.com/users/graalvm/gists{/gist_id}","starred_url":"https://api.github.com/users/graalvm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graalvm/subscriptions","organizations_url":"https://api.github.com/users/graalvm/orgs","repos_url":"https://api.github.com/users/graalvm/repos","events_url":"https://api.github.com/users/graalvm/events{/privacy}","received_events_url":"https://api.github.com/users/graalvm/received_events","type":"Organization","site_admin":false},"repo":{"id":51164398,"name":"truffleruby","full_name":"graalvm/truffleruby","owner":{"login":"graalvm","id":10176827,"avatar_url":"https://avatars0.githubusercontent.com/u/10176827?v=3","gravatar_id":"","url":"https://api.github.com/users/graalvm","html_url":"https://github.com/graalvm","followers_url":"https://api.github.com/users/graalvm/followers","following_url":"https://api.github.com/users/graalvm/following{/other_user}","gists_url":"https://api.github.com/users/graalvm/gists{/gist_id}","starred_url":"https://api.github.com/users/graalvm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graalvm/subscriptions","organizations_url":"https://api.github.com/users/graalvm/orgs","repos_url":"https://api.github.com/users/graalvm/repos","events_url":"https://api.github.com/users/graalvm/events{/privacy}","received_events_url":"https://api.github.com/users/graalvm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/graalvm/truffleruby","description":"A high performance implementation of the Ruby programming language. Built on the GraalVM by Oracle Labs.","fork":false,"url":"https://api.github.com/repos/graalvm/truffleruby","forks_url":"https://api.github.com/repos/graalvm/truffleruby/forks","keys_url":"https://api.github.com/repos/graalvm/truffleruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/graalvm/truffleruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/graalvm/truffleruby/teams","hooks_url":"https://api.github.com/repos/graalvm/truffleruby/hooks","issue_events_url":"https://api.github.com/repos/graalvm/truffleruby/issues/events{/number}","events_url":"https://api.github.com/repos/graalvm/truffleruby/events","assignees_url":"https://api.github.com/repos/graalvm/truffleruby/assignees{/user}","branches_url":"https://api.github.com/repos/graalvm/truffleruby/branches{/branch}","tags_url":"https://api.github.com/repos/graalvm/truffleruby/tags","blobs_url":"https://api.github.com/repos/graalvm/truffleruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/graalvm/truffleruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/graalvm/truffleruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/graalvm/truffleruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/graalvm/truffleruby/statuses/{sha}","languages_url":"https://api.github.com/repos/graalvm/truffleruby/languages","stargazers_url":"https://api.github.com/repos/graalvm/truffleruby/stargazers","contributors_url":"https://api.github.com/repos/graalvm/truffleruby/contributors","subscribers_url":"https://api.github.com/repos/graalvm/truffleruby/subscribers","subscription_url":"https://api.github.com/repos/graalvm/truffleruby/subscription","commits_url":"https://api.github.com/repos/graalvm/truffleruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/graalvm/truffleruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/graalvm/truffleruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/graalvm/truffleruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/graalvm/truffleruby/contents/{+path}","compare_url":"https://api.github.com/repos/graalvm/truffleruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/graalvm/truffleruby/merges","archive_url":"https://api.github.com/repos/graalvm/truffleruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/graalvm/truffleruby/downloads","issues_url":"https://api.github.com/repos/graalvm/truffleruby/issues{/number}","pulls_url":"https://api.github.com/repos/graalvm/truffleruby/pulls{/number}","milestones_url":"https://api.github.com/repos/graalvm/truffleruby/milestones{/number}","notifications_url":"https://api.github.com/repos/graalvm/truffleruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/graalvm/truffleruby/labels{/name}","releases_url":"https://api.github.com/repos/graalvm/truffleruby/releases{/id}","deployments_url":"https://api.github.com/repos/graalvm/truffleruby/deployments","created_at":"2016-02-05T18:03:11Z","updated_at":"2017-06-09T13:26:43Z","pushed_at":"2017-06-09T21:43:52Z","git_url":"git://github.com/graalvm/truffleruby.git","ssh_url":"git@github.com:graalvm/truffleruby.git","clone_url":"https://github.com/graalvm/truffleruby.git","svn_url":"https://github.com/graalvm/truffleruby","homepage":"","size":219074,"stargazers_count":690,"watchers_count":690,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":26,"mirror_url":null,"open_issues_count":10,"forks":26,"open_issues":10,"watchers":690,"default_branch":"master"}},"base":{"label":"graalvm:master","ref":"master","sha":"f95efcab08f5ea201f0d25657cb518d68686b819","user":{"login":"graalvm","id":10176827,"avatar_url":"https://avatars0.githubusercontent.com/u/10176827?v=3","gravatar_id":"","url":"https://api.github.com/users/graalvm","html_url":"https://github.com/graalvm","followers_url":"https://api.github.com/users/graalvm/followers","following_url":"https://api.github.com/users/graalvm/following{/other_user}","gists_url":"https://api.github.com/users/graalvm/gists{/gist_id}","starred_url":"https://api.github.com/users/graalvm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graalvm/subscriptions","organizations_url":"https://api.github.com/users/graalvm/orgs","repos_url":"https://api.github.com/users/graalvm/repos","events_url":"https://api.github.com/users/graalvm/events{/privacy}","received_events_url":"https://api.github.com/users/graalvm/received_events","type":"Organization","site_admin":false},"repo":{"id":51164398,"name":"truffleruby","full_name":"graalvm/truffleruby","owner":{"login":"graalvm","id":10176827,"avatar_url":"https://avatars0.githubusercontent.com/u/10176827?v=3","gravatar_id":"","url":"https://api.github.com/users/graalvm","html_url":"https://github.com/graalvm","followers_url":"https://api.github.com/users/graalvm/followers","following_url":"https://api.github.com/users/graalvm/following{/other_user}","gists_url":"https://api.github.com/users/graalvm/gists{/gist_id}","starred_url":"https://api.github.com/users/graalvm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graalvm/subscriptions","organizations_url":"https://api.github.com/users/graalvm/orgs","repos_url":"https://api.github.com/users/graalvm/repos","events_url":"https://api.github.com/users/graalvm/events{/privacy}","received_events_url":"https://api.github.com/users/graalvm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/graalvm/truffleruby","description":"A high performance implementation of the Ruby programming language. Built on the GraalVM by Oracle Labs.","fork":false,"url":"https://api.github.com/repos/graalvm/truffleruby","forks_url":"https://api.github.com/repos/graalvm/truffleruby/forks","keys_url":"https://api.github.com/repos/graalvm/truffleruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/graalvm/truffleruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/graalvm/truffleruby/teams","hooks_url":"https://api.github.com/repos/graalvm/truffleruby/hooks","issue_events_url":"https://api.github.com/repos/graalvm/truffleruby/issues/events{/number}","events_url":"https://api.github.com/repos/graalvm/truffleruby/events","assignees_url":"https://api.github.com/repos/graalvm/truffleruby/assignees{/user}","branches_url":"https://api.github.com/repos/graalvm/truffleruby/branches{/branch}","tags_url":"https://api.github.com/repos/graalvm/truffleruby/tags","blobs_url":"https://api.github.com/repos/graalvm/truffleruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/graalvm/truffleruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/graalvm/truffleruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/graalvm/truffleruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/graalvm/truffleruby/statuses/{sha}","languages_url":"https://api.github.com/repos/graalvm/truffleruby/languages","stargazers_url":"https://api.github.com/repos/graalvm/truffleruby/stargazers","contributors_url":"https://api.github.com/repos/graalvm/truffleruby/contributors","subscribers_url":"https://api.github.com/repos/graalvm/truffleruby/subscribers","subscription_url":"https://api.github.com/repos/graalvm/truffleruby/subscription","commits_url":"https://api.github.com/repos/graalvm/truffleruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/graalvm/truffleruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/graalvm/truffleruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/graalvm/truffleruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/graalvm/truffleruby/contents/{+path}","compare_url":"https://api.github.com/repos/graalvm/truffleruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/graalvm/truffleruby/merges","archive_url":"https://api.github.com/repos/graalvm/truffleruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/graalvm/truffleruby/downloads","issues_url":"https://api.github.com/repos/graalvm/truffleruby/issues{/number}","pulls_url":"https://api.github.com/repos/graalvm/truffleruby/pulls{/number}","milestones_url":"https://api.github.com/repos/graalvm/truffleruby/milestones{/number}","notifications_url":"https://api.github.com/repos/graalvm/truffleruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/graalvm/truffleruby/labels{/name}","releases_url":"https://api.github.com/repos/graalvm/truffleruby/releases{/id}","deployments_url":"https://api.github.com/repos/graalvm/truffleruby/deployments","created_at":"2016-02-05T18:03:11Z","updated_at":"2017-06-09T13:26:43Z","pushed_at":"2017-06-09T21:43:52Z","git_url":"git://github.com/graalvm/truffleruby.git","ssh_url":"git@github.com:graalvm/truffleruby.git","clone_url":"https://github.com/graalvm/truffleruby.git","svn_url":"https://github.com/graalvm/truffleruby","homepage":"","size":219074,"stargazers_count":690,"watchers_count":690,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":26,"mirror_url":null,"open_issues_count":10,"forks":26,"open_issues":10,"watchers":690,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/graalvm/truffleruby/pulls/157"},"html":{"href":"https://github.com/graalvm/truffleruby/pull/157"},"issue":{"href":"https://api.github.com/repos/graalvm/truffleruby/issues/157"},"comments":{"href":"https://api.github.com/repos/graalvm/truffleruby/issues/157/comments"},"review_comments":{"href":"https://api.github.com/repos/graalvm/truffleruby/pulls/157/comments"},"review_comment":{"href":"https://api.github.com/repos/graalvm/truffleruby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/graalvm/truffleruby/pulls/157/commits"},"statuses":{"href":"https://api.github.com/repos/graalvm/truffleruby/statuses/277971d7d02f01ef4af7b8703cae392feb0b20ab"}}}}
{"actor":{"display_login":"chrisseaton"}}