aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2019-03-19 14:07:08 +0100
committerPeter Eisentraut <peter@eisentraut.org>2019-03-19 14:07:08 +0100
commit28988a84cf19c01dba3c3fb40e95d9cd6e4888da (patch)
treeef3504ebe2120da7817c1e895443619dadaf4a28 /src
parent75c57058b0f5d511a9d80ddfab68a761229d68ea (diff)
downloadpostgresql-28988a84cf19c01dba3c3fb40e95d9cd6e4888da.tar.gz
postgresql-28988a84cf19c01dba3c3fb40e95d9cd6e4888da.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/include/storage/lock.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/storage/lock.h b/src/include/storage/lock.h
index 16b927cb801..badf7fd682b 100644
--- a/src/include/storage/lock.h
+++ b/src/include/storage/lock.h
@@ -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)