https://redmine.ruby-lang.org/
https://redmine.ruby-lang.org/favicon.ico?1711330511
2013-10-10T18:07:04Z
Ruby Issue Tracking System
Ruby master - Bug #8492: ObjectSpace.after_gc_start_hook aborts with GC.stress
https://redmine.ruby-lang.org/issues/8492?journal_id=42411
2013-10-10T18:07:04Z
ko1 (Koichi Sasada)
<ul></ul><p>随分放置してしまってすみません。<br>
これ、今でもなりますか? 手元ではなんか</p>
<p>$ ./ruby -robjspace -e'ObjectSpace.after_gc_start_hook=proc{};GC.stress=true;{}'<br>
セグメンテーション違反です</p>
<p>などと出てしまう。これはこれでまずかろう、という気もしますが...。</p>
Ruby master - Bug #8492: ObjectSpace.after_gc_start_hook aborts with GC.stress
https://redmine.ruby-lang.org/issues/8492?journal_id=42420
2013-10-11T03:37:01Z
nobu (Nobuyoshi Nakada)
nobu@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>This issue was solved with changeset r43245.<br>
Yui, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<p>vm_trace.c: fix infinite hook</p>
<ul>
<li>thread.c (rb_threadptr_execute_interrupts): flush postponed job only<br>
once at last.</li>
<li>vm_trace.c (rb_postponed_job_flush): defer calling postponed jobs<br>
registered while flushing to get rid of infinite reentrance of<br>
ObjectSpace.after_gc_start_hook. <a href="/issues/8492">[ruby-dev:47400]</a> [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: ObjectSpace.after_gc_start_hook aborts with GC.stress (Closed)" href="https://redmine.ruby-lang.org/issues/8492">#8492</a>]</li>
</ul>
Ruby master - Bug #8492: ObjectSpace.after_gc_start_hook aborts with GC.stress
https://redmine.ruby-lang.org/issues/8492?journal_id=42425
2013-10-11T19:52:54Z
nagachika (Tomoyuki Chikanaga)
nagachika00@gmail.com
<ul><li><strong>Backport</strong> changed from <i>1.9.3: UNKNOWN, 2.0.0: UNKNOWN</i> to <i>1.9.3: DONTNEED, 2.0.0: DONTNEED</i></li></ul>