https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112015-04-02T22:09:23ZRuby Issue Tracking SystemRuby master - Feature #11026: How atomic should dynamic regexp with "once" flag be?https://redmine.ruby-lang.org/issues/11026?journal_id=520112015-04-02T22:09:23Zheadius (Charles Nutter)headius@headius.com
<ul></ul><p>Filed <a href="https://github.com/jruby/jruby/issues/2798" class="external">https://github.com/jruby/jruby/issues/2798</a> to track this in JRuby.</p> Ruby master - Feature #11026: How atomic should dynamic regexp with "once" flag be?https://redmine.ruby-lang.org/issues/11026?journal_id=520132015-04-02T23:36:26Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-5 priority-4 priority-default closed" href="/issues/6701">Bug #6701</a>: once literal doesn't care escape</i> added</li></ul> Ruby master - Feature #11026: How atomic should dynamic regexp with "once" flag be?https://redmine.ruby-lang.org/issues/11026?journal_id=520162015-04-02T23:45:01Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/52016/diff?detail_id=37487">diff</a>)</li></ul><p>You mean the last assertion should be that <code>ary</code> just has same regexps, not the exact values?</p> Ruby master - Feature #11026: How atomic should dynamic regexp with "once" flag be?https://redmine.ruby-lang.org/issues/11026?journal_id=520202015-04-03T04:15:44Zheadius (Charles Nutter)headius@headius.com
<ul></ul><p>Nobuyoshi Nakada wrote:</p>
<blockquote>
<p>You mean the last assertion should be that <code>ary</code> just has same regexps, not the exact values?</p>
</blockquote>
<p>I would find that more acceptable than synchronizing around all the embedded code in a dynamic regexp.</p>
<p><a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: once literal doesn't care escape (Closed)" href="https://redmine.ruby-lang.org/issues/6701">#6701</a> is interesting. I would claim that both cases are abnormal exits from code and therefor the "once" regexp never completes processing, but I cannot read Japanese to understand the bug.</p>
<p>I guess my general proposal is that we can only really guarantee that one thread and only one thread will ever complete processing a "once" regexp, though multiple may start processing.</p> Ruby master - Feature #11026: How atomic should dynamic regexp with "once" flag be?https://redmine.ruby-lang.org/issues/11026?journal_id=955912021-12-23T23:43:58Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<ul><li><strong>Project</strong> changed from <i>14</i> to <i>Ruby master</i></li></ul>