[前][次][番号順一覧][スレッド一覧]

ruby-changes:31114

From: kosaki <ko1@a...>
Date: Tue, 8 Oct 2013 11:14:28 +0900 (JST)
Subject: [ruby-changes:31114] kosaki:r43193 (trunk): * cont.c: disable FIBER_USE_NATIVE on GNU/Hurd because it doesn't

kosaki	2013-10-08 11:14:21 +0900 (Tue, 08 Oct 2013)

  New Revision: 43193

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

  Log:
    * cont.c: disable FIBER_USE_NATIVE on GNU/Hurd because it doesn't
      support a combination getcontext() and threads. Patch by
      Gabriele Giacone (1o5g4r8o@g...). [Bug #8990][ruby-core:57685]

  Modified files:
    trunk/ChangeLog
    trunk/cont.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 43192)
+++ ChangeLog	(revision 43193)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Oct  8 10:56:39 2013  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* cont.c: disable FIBER_USE_NATIVE on GNU/Hurd because it doesn't
+	  support a combination getcontext() and threads. Patch by
+	  Gabriele Giacone (1o5g4r8o@g...). [Bug #8990][ruby-core:57685]
+
 Tue Oct  8 05:58:12 2013  Tanaka Akira  <akr@f...>
 
 	* lib/time.rb (Time.strptime): Time.strptime('0', '%s') returns local
Index: cont.c
===================================================================
--- cont.c	(revision 43192)
+++ cont.c	(revision 43193)
@@ -44,6 +44,13 @@ https://github.com/ruby/ruby/blob/trunk/cont.c#L44
 /* At least, Linux/ia64's getcontext(3) doesn't save register window.
  */
 #     define FIBER_USE_NATIVE 0
+#   elif defined(__GNU__)
+/* GNU/Hurd doesn't fully support getcontext, setcontext, makecontext
+ * and swapcontext functions. Disabling their usage till support is
+ * implemented. More info at
+ * http://darnassus.sceen.net/~hurd-web/open_issues/glibc/#getcontext
+ */
+#     define FIBER_USE_NATIVE 0
 #   else
 #     define FIBER_USE_NATIVE 1
 #   endif

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]