mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 19:22:09 -04:00
Fix invalid cache-line padding for qpcache buckets
The isc_queue_t was missing in the calculation of the required padding size inside the qpcache bucket structure.
This commit is contained in:
parent
75060cbd63
commit
3ef9b09620
1 changed files with 2 additions and 2 deletions
|
|
@ -238,8 +238,8 @@ typedef struct qpcache_bucket {
|
|||
|
||||
/* Padding to prevent false sharing between locks. */
|
||||
uint8_t __padding[ISC_OS_CACHELINE_SIZE -
|
||||
(sizeof(dns_slabheaderlist_t) + sizeof(isc_heap_t *) +
|
||||
sizeof(isc_rwlock_t)) %
|
||||
(sizeof(isc_queue_t) + sizeof(isc_rwlock_t) +
|
||||
sizeof(dns_slabheaderlist_t) + sizeof(isc_heap_t *)) %
|
||||
ISC_OS_CACHELINE_SIZE];
|
||||
|
||||
} qpcache_bucket_t;
|
||||
|
|
|
|||
Loading…
Reference in a new issue