SF.net SVN: gar:[23558] csw/mgar/pkg/ruby18/trunk/Makefile

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Tue May 6 11:23:35 CEST 2014


Revision: 23558
          http://sourceforge.net/p/gar/code/23558
Author:   dmichelsen
Date:     2014-05-06 09:23:34 +0000 (Tue, 06 May 2014)
Log Message:
-----------
ruby18/trunk: Add performance enhancements when pthreads are enabled

Modified Paths:
--------------
    csw/mgar/pkg/ruby18/trunk/Makefile

Modified: csw/mgar/pkg/ruby18/trunk/Makefile
===================================================================
--- csw/mgar/pkg/ruby18/trunk/Makefile	2014-05-06 09:21:06 UTC (rev 23557)
+++ csw/mgar/pkg/ruby18/trunk/Makefile	2014-05-06 09:23:34 UTC (rev 23558)
@@ -128,6 +128,12 @@
 CONFIGURE_ARGS += --program-suffix=18
 # Needed for conformity with Tk
 CONFIGURE_ARGS += --enable-pthread
+# As a result of pthreads getcontext/setcontext is used massively. These two presets are the essence of the proposed patch:
+#   http://timetobleed.com/fix-a-bug-in-rubys-configurein-and-get-a-30-performance-boost/
+#   https://github.com/ice799/matzruby/commit/0b9b69f9653782a33aee2b8937d405eae245b60c
+CONFIGURE_ARGS += ac_cv_func_getcontext=no
+CONFIGURE_ARGS += ac_cv_func_setcontext=no
+
 EXTRA_CONFIGURE_ARGS_isa-default-compiler-sun = --enable-install-doc
 
 INSTALL_ARGS = install

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list