From d6a5698d8a14efa0479347fee7c7a40f4966b823 Mon Sep 17 00:00:00 2001 From: mame Date: Mon, 4 Jul 2011 16:32:12 +0000 Subject: [PATCH] * cont.c: disable FIBER_USE_NATIVE on Solaris because resuming any Fiber caused SEGV. I haven't follow up the issue deeply, but it works when disabling the feature. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ cont.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e1a3be5a37..f6d752f3af 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Tue Jul 5 01:24:26 2011 Yusuke Endoh + + * cont.c: disable FIBER_USE_NATIVE on Solaris because resuming any + Fiber caused SEGV. I haven't follow up the issue deeply, but it + works when disabling the feature. + Tue Jul 5 01:22:46 2011 Yusuke Endoh * addr2line.c: include to fix a build issue on Solaris. diff --git a/cont.c b/cont.c index cdbe5909c5..aa144ce619 100644 --- a/cont.c +++ b/cont.c @@ -15,7 +15,7 @@ #include "gc.h" #include "eval_intern.h" -#if ((defined(_WIN32) && _WIN32_WINNT >= 0x0400) || defined(HAVE_SETCONTEXT)) && !defined(__NetBSD__) && !defined(FIBER_USE_NATIVE) +#if ((defined(_WIN32) && _WIN32_WINNT >= 0x0400) || defined(HAVE_SETCONTEXT)) && !defined(__NetBSD__) && !defined(sun) && !defined(FIBER_USE_NATIVE) #define FIBER_USE_NATIVE 1 /* FIBER_USE_NATIVE enables Fiber performance improvement using system