aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-01 07:25:20 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-01 07:25:20 +0000
commit6957c6d9cf0b6a1e211c4b0175bc5474296f2031 (patch)
tree61b3d5daf60833ed44d920da319870217f17ef9f
parent678f6b37164303417c04a93e855af11cc6d1be62 (diff)
downloadruby-6957c6d9cf0b6a1e211c4b0175bc5474296f2031.tar.gz
* thread_pthread.c (thread_start_func_1): don't call
native_thread_init_stack(th) on cygwin to avoid the segv introduced by r27789. Cygwin's signal implementation is half baked so USE_SIGNALSTACK is not defined and it needs another treatment. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog8
-rw-r--r--thread_pthread.c2
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 11af4a582b..af59c74f18 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+Thu Jul 1 16:19:53 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * thread_pthread.c (thread_start_func_1): don't call
+ native_thread_init_stack(th) on cygwin to avoid the segv
+ introduced by r27789. Cygwin's signal implementation is half
+ baked so USE_SIGNALSTACK is not defined and it needs another
+ treatment.
+
Thu Jul 1 13:00:54 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* common.mk (test-knownbug): ignore known bugs.
diff --git a/thread_pthread.c b/thread_pthread.c
index 99edbc62e1..e974b73e6f 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -356,7 +356,9 @@ thread_start_func_1(void *th_ptr)
rb_thread_t *th = th_ptr;
VALUE stack_start;
+#ifndef __CYGWIN__
native_thread_init_stack(th);
+#endif
/* run */
thread_start_func_2(th, &stack_start, rb_ia64_bsp());
}