ruby-changes:46938
From: nobu <ko1@a...>
Date: Fri, 9 Jun 2017 22:58:14 +0900 (JST)
Subject: [ruby-changes:46938] nobu:r59053 (trunk): thread.c: workaround for valgrind on Mac OS X
nobu 2017-06-09 22:58:09 +0900 (Fri, 09 Jun 2017) New Revision: 59053 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59053 Log: 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 Modified files: trunk/thread.c Index: thread.c =================================================================== --- thread.c (revision 59052) +++ thread.c (revision 59053) @@ -77,6 +77,9 @@ https://github.com/ruby/ruby/blob/trunk/thread.c#L77 #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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/