https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112017-03-05T07:32:05ZRuby Issue Tracking SystemRuby master - Bug #13282: opt_str_freeze does not always dedupehttps://redmine.ruby-lang.org/issues/13282?journal_id=633442017-03-05T07:32:05Znormalperson (Eric Wong)normalperson@yhbt.net
<ul></ul><p><a href="mailto:normalperson@yhbt.net" class="email">normalperson@yhbt.net</a> wrote:</p>
<blockquote>
<p>Testing with some old installs I had around, 2.1.9p490 seems fine,</p>
</blockquote>
<p>Too Bad I'm Wrong.</p>
<p>It's seems to be only tickled by the gemification of test-unit<br>
in 2.2. Using the test-unit gem with 2.1 still fails...</p>
<p>Now, I wonder what's causing this to interact badly with<br>
test-unit...</p> Ruby master - Bug #13282: opt_str_freeze does not always dedupehttps://redmine.ruby-lang.org/issues/13282?journal_id=633452017-03-05T07:32:05Znormalperson (Eric Wong)normalperson@yhbt.net
<ul></ul><p>Eric Wong <a href="mailto:normalperson@yhbt.net" class="email">normalperson@yhbt.net</a> wrote:</p>
<blockquote>
<p>Now, I wonder what's causing this to interact badly with<br>
test-unit...</p>
</blockquote>
<p>Same test with minitest (5.10.1) + ruby 2.5.0dev r57744 works fine:</p>
<p>require 'minitest/autorun'<br>
class TestString < Minitest::Test<br>
def test_string_freeze<br>
assert_equal "foo".freeze.object_id, "foo".freeze.object_id<br>
end<br>
end</p>
<p>Strange...</p> Ruby master - Bug #13282: opt_str_freeze does not always dedupehttps://redmine.ruby-lang.org/issues/13282?journal_id=633462017-03-05T08:12:01Znormalperson (Eric Wong)normalperson@yhbt.net
<ul></ul><p>Eric Wong <a href="mailto:normalperson@yhbt.net" class="email">normalperson@yhbt.net</a> wrote:</p>
<blockquote>
<p>Now, I wonder what's causing this to interact badly with<br>
test-unit...</p>
</blockquote>
<p>power_assert/enable_tracepoint_events - this disables all<br>
sorts of MRI optimizations for testing.</p>
<p>For background, I was relying on opt_str_freeze to detect<br>
the presence of the optimization so I could enable (or skip)<br>
further tests for my own optimizations which were mainline<br>
Ruby-specific.</p> Ruby master - Bug #13282: opt_str_freeze does not always dedupehttps://redmine.ruby-lang.org/issues/13282?journal_id=635342017-03-13T07:50:20Zko1 (Koichi Sasada)
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Rejected</i></li></ul><p>for this case, <code>specialized_instruction</code> compilation option disable this feature.</p> Ruby master - Bug #13282: opt_str_freeze does not always dedupehttps://redmine.ruby-lang.org/issues/13282?journal_id=636522017-03-18T12:16:54Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Backport</strong> changed from <i>2.2: REQUIRED, 2.3: REQUIRED, 2.4: REQUIRED</i> to <i>2.2: WONTFIX, 2.3: WONTFIX, 2.4: WONTFIX</i></li></ul>