[ruby-cvs:50387] nobu:r43245 (trunk): vm_trace.c: fix infinite hook

nobu at ruby-lang.org nobu at ruby-lang.org
Fri Oct 11 03:36:56 JST 2013


nobu	2013-10-11 03:36:54 +0900 (Fri, 11 Oct 2013)

  New Revision: 43245

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43245

  Log:
    vm_trace.c: fix infinite hook
    
    * thread.c (rb_threadptr_execute_interrupts): flush postponed job only
      once at last.
    * vm_trace.c (rb_postponed_job_flush): defer calling postponed jobs
      registered while flushing to get rid of infinite reentrance of
      ObjectSpace.after_gc_start_hook.  [ruby-dev:47400] [Bug #8492]

  Modified files:
    trunk/ChangeLog
    trunk/test/objspace/test_objspace.rb
    trunk/thread.c
    trunk/vm_trace.c


More information about the ruby-cvs mailing list