diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-09 13:58:09 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-09 13:58:09 +0000 |
commit | 9abe121c9f1679900a559c780d102e796cb61e5e (patch) | |
tree | ef1d69a2f630a3abf8319a2fe9bf75eec03607c8 | |
parent | a4d8a6e1489dd14e4fb83ea2181efec92935fec5 (diff) | |
download | ruby-9abe121c9f1679900a559c780d102e796cb61e5e.tar.gz |
thread.c: workaround for valgrind on Mac OS X
Without this hack, pthread_join() in rb_thread_stop_timer_thread()
segfaults.
ProductName: Mac OS X
ProductVersion: 10.11.6
BuildVersion: 15G1510
valgrind-3.12.0
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | thread.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -77,6 +77,9 @@ #define RUBY_THREAD_PRIORITY_MIN -3 #endif +#if defined HAVE_VALGRIND_MEMCHECK_H && __APPLE__ +#define THREAD_DEBUG -1 +#endif #ifndef THREAD_DEBUG #define THREAD_DEBUG 0 #endif |