cvs commit: ports/Mk bsd.ruby.mk ports/lang/ruby18 Makefile ports/lang/ruby18/files patch-configure.in patch-gc.c

Stanislav Sedov stas at FreeBSD.org
Fri Jun 19 12:42:46 UTC 2009


stas        2009-06-19 12:42:45 UTC

  FreeBSD ports repository

  Modified files:
    Mk                   bsd.ruby.mk 
    lang/ruby18          Makefile 
    lang/ruby18/files    patch-gc.c 
  Added files:
    lang/ruby18/files    patch-configure.in 
  Log:
  - Fix stack overflow detection algorithm.  It has not worked before as
    we were linking the ruby binary against pthreads, and the default
    stack size detection method with getrlimit didn't returned right
    values in this case.  Now, if threads enabled, it also tries to
    determine the stack size via pthreads calls and use this value if
    it is smaller than what getrlimit returned.  Furthermore, the stack
    overflow detection routine now works proactively, generating
    exception if there're probability the stack will be exhausted by
    the time of the next check (ruby performs checks only in each 256th
    call of rb_call0). [1]
  - Build pthreads-enabled ruby by default. I have not received any
    bug reports for this for years, and this verison will work correctly
    with threaded libraries. Also, do not link agains pthreads in non-pthread
    case (this breaks stack size detection algorithm), and eliminate the
    option to disable pthreads (so only power users who know what they're
    doing can disable them).
  - Build RDoc by default so it is available in the package.
  - Bump portrevision.
  
  PR:             ports/132158
  Reported by:    Eugene Pimenov <libc at libc.st>
  
  Revision  Changes    Path
  1.185     +2 -2      ports/Mk/bsd.ruby.mk
  1.143     +10 -16    ports/lang/ruby18/Makefile
  1.1       +35 -0     ports/lang/ruby18/files/patch-configure.in (new)
  1.4       +138 -3    ports/lang/ruby18/files/patch-gc.c


More information about the cvs-all mailing list