|
From: <sv...@va...> - 2015-08-19 08:27:13
|
Author: tom
Date: Wed Aug 19 09:27:06 2015
New Revision: 15567
Log:
Install the SIGILL handler everywhere so we get consistent
stacks and don't have to worry about __GLIBC_PREREQ not being
defined on all platforms.
Modified:
trunk/drd/tests/tc12_rwl_trivial.stderr.exp
trunk/helgrind/tests/safe-pthread.h
Modified: trunk/drd/tests/tc12_rwl_trivial.stderr.exp
==============================================================================
--- trunk/drd/tests/tc12_rwl_trivial.stderr.exp (original)
+++ trunk/drd/tests/tc12_rwl_trivial.stderr.exp Wed Aug 19 09:27:06 2015
@@ -1,7 +1,7 @@
Reader-writer lock not locked by calling thread: rwlock 0x.........
at 0x........: pthread_rwlock_unlock (drd_pthread_intercepts.c:?)
- by 0x........: safe_pthread_rwlock_unlock (safe-pthread.h:43)
+ by 0x........: safe_pthread_rwlock_unlock (safe-pthread.h:42)
by 0x........: main (tc12_rwl_trivial.c:29)
rwlock 0x........ was first observed at:
at 0x........: pthread_rwlock_init (drd_pthread_intercepts.c:?)
Modified: trunk/helgrind/tests/safe-pthread.h
==============================================================================
--- trunk/helgrind/tests/safe-pthread.h (original)
+++ trunk/helgrind/tests/safe-pthread.h Wed Aug 19 09:27:06 2015
@@ -26,7 +26,6 @@
* glibc normally does - error reporting is optional.
*/
static int safe_pthread_rwlock_unlock( pthread_rwlock_t *rwlock ) {
-#if __GLIBC_PREREQ(2,20) && ( defined(__i386__) || defined(__x86_64__) )
struct sigaction sa;
struct sigaction oldsa;
int r;
@@ -48,9 +47,6 @@
sigaction( SIGILL, &oldsa, NULL );
return r;
-#else
- return pthread_rwlock_unlock( rwlock );
-#endif
}
#define pthread_rwlock_unlock safe_pthread_rwlock_unlock
|