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 | f0888d982ce26e6c8566fa991e5499b5efe8902c (patch) | |
tree | ef1d69a2f630a3abf8319a2fe9bf75eec03607c8 /thread.c | |
parent | e9952741d2742558af5a4f66074870815452b8f3 (diff) | |
download | ruby-f0888d982ce26e6c8566fa991e5499b5efe8902c.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
Diffstat (limited to 'thread.c')
-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 |