ruby-changes:16051
From: wyhaines <ko1@a...>
Date: Tue, 25 May 2010 02:18:14 +0900 (JST)
Subject: [ruby-changes:16051] Ruby:r27999 (ruby_1_8_6): Added --disable-ucontext, to be used with --enable-pthreads, to improve performance when built with pthread support by eliminating the oodles of sigprocmask calls that otherwise occur.
wyhaines 2010-05-25 02:18:03 +0900 (Tue, 25 May 2010) New Revision: 27999 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27999 Log: Added --disable-ucontext, to be used with --enable-pthreads, to improve performance when built with pthread support by eliminating the oodles of sigprocmask calls that otherwise occur. Modified files: branches/ruby_1_8_6/ChangeLog branches/ruby_1_8_6/configure.in Index: ruby_1_8_6/configure.in =================================================================== --- ruby_1_8_6/configure.in (revision 27998) +++ ruby_1_8_6/configure.in (revision 27999) @@ -356,6 +356,10 @@ *) with_libc_r=no;; esac], [with_libc_r=no]) +AC_ARG_ENABLE(ucontext, + [ --disable-ucontext do not use getcontext()/setcontext().], + [disable_ucontext=yes], [disable_ucontext=no]) + AC_ARG_ENABLE(pthread, [ --enable-pthread use pthread library.], [enable_pthread=$enableval], [enable_pthread=no]) @@ -951,7 +955,8 @@ fi fi fi -if test x"$ac_cv_header_ucontext_h" = xyes; then + +if test x"$ac_cv_header_ucontext_h" = xyes && test x"$disable_ucontext" = xno; then if test x"$rb_with_pthread" = xyes; then AC_CHECK_FUNCS(getcontext setcontext) fi Index: ruby_1_8_6/ChangeLog =================================================================== --- ruby_1_8_6/ChangeLog (revision 27998) +++ ruby_1_8_6/ChangeLog (revision 27999) @@ -1,8 +1,12 @@ +Mon May 24 05:15:00 2010 Kirk Haines <khaines@r...> + + * configure.in: Bug #2553 [ruby-core:27380]; Add a --disable-ucontext option, for use with --enable-pthreads, to avoid performance loss from --enable-pthreads and the oodles of sigprocmask calls that normally brings. + Thu May 20 04:10:00 2010 Kirk Haines <khaines@r...> - * lib/cgi.rb: Backport #229 [ruby-core:17634]; CGI::Cookie objects can get out of sync when CGI::Cookie#value= is used to assign a new value. Also, if a nil value ends up in the array of values for the cookie, CGI::Cookie#to_s would blow up on a gsub error when it tried to CGI::escape the nil value. This is fixed so that nils are treated as empty strings. + * lib/cgi.rb: Backport #229 [ruby-core:17634]; CGI::Cookie objects can get out of sync when CGI::Cookie#value= is used to assign a new value. Also, if a nil value ends up in the array of values for the cookie, CGI::Cookie#to_s would blow up on a gsub error when it tried to CGI::escape the nil value. This is fixed so that nils are treated as empty strings. r27932 - * lib/irb/ext/multi-irb.rb: Backport #145 [ruby-dev:35075]; Fixes some misleading exceptions in IRB's fg command when used with no arguments or invalid arguments. + * lib/irb/ext/multi-irb.rb: Backport #145 [ruby-dev:35075]; Fixes some misleading exceptions in IRB's fg command when used with no arguments or invalid arguments. r27934 * lib/irb/extended-command.rb: Backport #145 [ruby-dev:35075] Fri Mar 5 03:58:00 2010 Kirk Haines <khaines@r...> -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/