mirror of
https://github.com/postgres/postgres.git
synced 2025-05-06 19:59:18 +03:00
Reorder LOCALLOCK structure members to compact the size
Save 8 bytes (on x86-64) by filling up padding holes. Author: Takayuki Tsunakawa <tsunakawa.takay@jp.fujitsu.com> Discussion: https://www.postgresql.org/message-id/20190219001639.ft7kxir2iz644alf@alap3.anarazel.de
This commit is contained in:
parent
75c57058b0
commit
28988a84cf
@ -404,15 +404,15 @@ typedef struct LOCALLOCK
|
||||
LOCALLOCKTAG tag; /* unique identifier of locallock entry */
|
||||
|
||||
/* data */
|
||||
uint32 hashcode; /* copy of LOCKTAG's hash value */
|
||||
LOCK *lock; /* associated LOCK object, if any */
|
||||
PROCLOCK *proclock; /* associated PROCLOCK object, if any */
|
||||
uint32 hashcode; /* copy of LOCKTAG's hash value */
|
||||
int64 nLocks; /* total number of times lock is held */
|
||||
bool holdsStrongLockCount; /* bumped FastPathStrongRelationLocks */
|
||||
bool lockCleared; /* we read all sinval msgs for lock */
|
||||
int numLockOwners; /* # of relevant ResourceOwners */
|
||||
int maxLockOwners; /* allocated size of array */
|
||||
LOCALLOCKOWNER *lockOwners; /* dynamically resizable array */
|
||||
bool holdsStrongLockCount; /* bumped FastPathStrongRelationLocks */
|
||||
bool lockCleared; /* we read all sinval msgs for lock */
|
||||
} LOCALLOCK;
|
||||
|
||||
#define LOCALLOCK_LOCKMETHOD(llock) ((llock).tag.lock.locktag_lockmethodid)
|
||||
|
Loading…
x
Reference in New Issue
Block a user