mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-10 17:17:06 +02:00
Revert "MINOR: threads: change lock_t to an unsigned int"
This reverts commit 8f1f177ed0
.
Repeated tests have shown a small perforamnce degradation of ~1.8%
caused by this patch at high request rates on 16 threads. The exact
cause is not yet perfectly known but it probably stems in slower
accesses for non-64-bit aligned atomic accesses.
This commit is contained in:
parent
751153e0f1
commit
b9ad30a8ad
@ -95,8 +95,8 @@
|
|||||||
/*** Common parts below ***/
|
/*** Common parts below ***/
|
||||||
|
|
||||||
/* storage types used by spinlocks and RW locks */
|
/* storage types used by spinlocks and RW locks */
|
||||||
#define __HA_SPINLOCK_T unsigned int
|
#define __HA_SPINLOCK_T unsigned long
|
||||||
#define __HA_RWLOCK_T unsigned int
|
#define __HA_RWLOCK_T unsigned long
|
||||||
|
|
||||||
|
|
||||||
/* When thread debugging is enabled, we remap HA_SPINLOCK_T and HA_RWLOCK_T to
|
/* When thread debugging is enabled, we remap HA_SPINLOCK_T and HA_RWLOCK_T to
|
||||||
|
Loading…
Reference in New Issue
Block a user