[ruby-cvs:50376] ko1:r43234 (trunk): * vm_trace.c (postponed_job): use preallocated buffer.

ko1 at ruby-lang.org ko1 at ruby-lang.org
Thu Oct 10 13:56:33 JST 2013


ko1	2013-10-10 13:56:32 +0900 (Thu, 10 Oct 2013)

  New Revision: 43234

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

  Log:
    * vm_trace.c (postponed_job): use preallocated buffer.
      Pre-allocate MAX_POSTPONED_JOB (1024) sized buffer
      and use it.
      If rb_postponed_job_register() cause overflow, simply it
      fails and returns 0.
      And maybe rb_postponed_job_register() is signal safe.
    * vm_core.h: change data structure.

  Modified files:
    trunk/ChangeLog
    trunk/vm_core.h
    trunk/vm_trace.c


More information about the ruby-cvs mailing list