1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
mame 2011-07-04 16:32:12 +00:00
parent a5305216bb
commit d6a5698d8a
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
Tue Jul 5 01:24:26 2011 Yusuke Endoh <mame@tsg.ne.jp>
* 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 <mame@tsg.ne.jp>
* addr2line.c: include <alloca.h> to fix a build issue on Solaris.

2
cont.c
View file

@ -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