{"action":"created","issue":{"url":"https://api.github.com/repos/jruby/jruby/issues/4436","repository_url":"https://api.github.com/repos/jruby/jruby","labels_url":"https://api.github.com/repos/jruby/jruby/issues/4436/labels{/name}","comments_url":"https://api.github.com/repos/jruby/jruby/issues/4436/comments","events_url":"https://api.github.com/repos/jruby/jruby/issues/4436/events","html_url":"https://github.com/jruby/jruby/issues/4436","id":200278544,"number":4436,"title":"[Truffle] Can't modify frozen Regexp Error for Named Captures","user":{"login":"bjfish","id":110023,"avatar_url":"https://avatars.githubusercontent.com/u/110023?v=3","gravatar_id":"","url":"https://api.github.com/users/bjfish","html_url":"https://github.com/bjfish","followers_url":"https://api.github.com/users/bjfish/followers","following_url":"https://api.github.com/users/bjfish/following{/other_user}","gists_url":"https://api.github.com/users/bjfish/gists{/gist_id}","starred_url":"https://api.github.com/users/bjfish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjfish/subscriptions","organizations_url":"https://api.github.com/users/bjfish/orgs","repos_url":"https://api.github.com/users/bjfish/repos","events_url":"https://api.github.com/users/bjfish/events{/privacy}","received_events_url":"https://api.github.com/users/bjfish/received_events","type":"User","site_admin":false},"labels":[{"id":74359503,"url":"https://api.github.com/repos/jruby/jruby/labels/truffle","name":"truffle","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-01-12T04:56:41Z","updated_at":"2017-01-12T14:15:43Z","closed_at":null,"body":"### Environment\r\n\r\nAlso found while running in the addressable specs.\r\n\r\n### Expected Behavior\r\n```\r\n$ ruby -e 'puts /(?<foo>.)(?<bar>.)/.freeze.named_captures'\r\n{\"foo\"=>[1], \"bar\"=>[2]}\r\n```\r\n### Actual Behavior\r\n```\r\n$ jt p '/(?<foo>.)(?<bar>.)/.freeze.named_captures'\r\n$ /Users/brandonfish/Documents/jruby/bin/jruby -X+T -Xtruffle.core.load_path=/Users/brandonfish/Documents/jruby/truffle/src/main/ruby -Xtruffle.graal.warn_unless=false -e 'p begin /(?<foo>.)(?<bar>.)/.freeze.named_captures end'\r\n/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/regexp.rb:312:in `named_captures': can't modify frozen Regexp (RuntimeError)\r\n\tfrom -e:1:in `<main>'\r\n\r\n```\r\n\r\ncc'ing: @eregon because it appears he has working on this recently: https://github.com/jruby/jruby/commit/d88a10101cadcf2729dc2d400d576748f58c9de6\r\n\r\nMRI appears to avoid this frozen issue by always re-calculating. However maybe we have a way to cache this while avoiding this frozen error?\r\n"},"comment":{"url":"https://api.github.com/repos/jruby/jruby/issues/comments/272173474","html_url":"https://github.com/jruby/jruby/issues/4436#issuecomment-272173474","issue_url":"https://api.github.com/repos/jruby/jruby/issues/4436","id":272173474,"user":{"login":"nirvdrum","id":12584,"avatar_url":"https://avatars.githubusercontent.com/u/12584?v=3","gravatar_id":"","url":"https://api.github.com/users/nirvdrum","html_url":"https://github.com/nirvdrum","followers_url":"https://api.github.com/users/nirvdrum/followers","following_url":"https://api.github.com/users/nirvdrum/following{/other_user}","gists_url":"https://api.github.com/users/nirvdrum/gists{/gist_id}","starred_url":"https://api.github.com/users/nirvdrum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nirvdrum/subscriptions","organizations_url":"https://api.github.com/users/nirvdrum/orgs","repos_url":"https://api.github.com/users/nirvdrum/repos","events_url":"https://api.github.com/users/nirvdrum/events{/privacy}","received_events_url":"https://api.github.com/users/nirvdrum/received_events","type":"User","site_admin":false},"created_at":"2017-01-12T14:15:43Z","updated_at":"2017-01-12T14:15:43Z","body":"I'm not sure which cache you're talking about, but the various regexp caches were added because they made a pretty big difference when testing gems."}}
{"actor":{"display_login":"nirvdrum"}}