18 lines
833 B
Diff
18 lines
833 B
Diff
|
diff -up gperftools-2.4/src/base/spinlock_linux-inl.h.armfutex gperftools-2.4/src/base/spinlock_linux-inl.h
|
||
|
--- gperftools-2.4/src/base/spinlock_linux-inl.h.armfutex 2015-06-01 15:46:32.129618825 -0400
|
||
|
+++ gperftools-2.4/src/base/spinlock_linux-inl.h 2015-06-01 15:46:55.081459716 -0400
|
||
|
@@ -51,13 +51,8 @@ static struct InitModule {
|
||
|
int x = 0;
|
||
|
// futexes are ints, so we can use them only when
|
||
|
// that's the same size as the lockword_ in SpinLock.
|
||
|
-#ifdef __arm__
|
||
|
- // ARM linux doesn't support sys_futex1(void*, int, int, struct timespec*);
|
||
|
- have_futex = 0;
|
||
|
-#else
|
||
|
have_futex = (sizeof (Atomic32) == sizeof (int) &&
|
||
|
sys_futex(&x, FUTEX_WAKE, 1, 0) >= 0);
|
||
|
-#endif
|
||
|
if (have_futex &&
|
||
|
sys_futex(&x, FUTEX_WAKE | futex_private_flag, 1, 0) < 0) {
|
||
|
futex_private_flag = 0;
|