diff options
author | wyhaines <wyhaines@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-24 17:18:03 +0000 |
---|---|---|
committer | wyhaines <wyhaines@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-24 17:18:03 +0000 |
commit | a7a9d0cf6e5dd0492e3e07e0226d0d9e7637a7b3 (patch) | |
tree | 81a58a13a563fe6753677d61bef961308b07f2c0 | |
parent | c34072460ae81c328780bdb54a64e867c2579871 (diff) |
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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@27999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | configure.in | 7 |
2 files changed, 12 insertions, 3 deletions
@@ -1,8 +1,12 @@ +Mon May 24 05:15:00 2010 Kirk Haines <khaines@ruby-lang.org> + + * 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@ruby-lang.org> - * 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@ruby-lang.org> diff --git a/configure.in b/configure.in index 608be5cac4..c13a09168e 100644 --- a/configure.in +++ b/configure.in @@ -356,6 +356,10 @@ AC_ARG_WITH(libc_r, *) 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 @@ if test x"$enable_pthread" = xyes; then 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 |