Force the size and alignment of LWLock array entries to be either 16 or 32

Tom Lane <tgl@sss.pgh.pa.us>

Commit: dc06734a7272ab1a3be3f6b86921b0a35008526a
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-09-16T00:30:05Z
Releases: 8.1.0
Force the size and alignment of LWLock array entries to be either 16 or 32
bytes.  This shouldn't make any difference on x86 machines, where the size
happened to be 16 bytes anyway, but on 64-bit machines and machines with
slock_t int or wider, it will speed array indexing and hopefully reduce
SMP cache contention effects.  Per recent experimentation.

Files

PathChange+/−
src/backend/storage/lmgr/lwlock.c modified +45 −18