Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit28988a8

Browse files
committed
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
1 parent75c5705 commit28988a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/include/storage/lock.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,15 +404,15 @@ typedef struct LOCALLOCK
404404
LOCALLOCKTAGtag;/* unique identifier of locallock entry */
405405

406406
/* data */
407+
uint32hashcode;/* copy of LOCKTAG's hash value */
407408
LOCK*lock;/* associated LOCK object, if any */
408409
PROCLOCK*proclock;/* associated PROCLOCK object, if any */
409-
uint32hashcode;/* copy of LOCKTAG's hash value */
410410
int64nLocks;/* total number of times lock is held */
411-
boolholdsStrongLockCount;/* bumped FastPathStrongRelationLocks */
412-
boollockCleared;/* we read all sinval msgs for lock */
413411
intnumLockOwners;/* # of relevant ResourceOwners */
414412
intmaxLockOwners;/* allocated size of array */
415413
LOCALLOCKOWNER*lockOwners;/* dynamically resizable array */
414+
boolholdsStrongLockCount;/* bumped FastPathStrongRelationLocks */
415+
boollockCleared;/* we read all sinval msgs for lock */
416416
}LOCALLOCK;
417417

418418
#defineLOCALLOCK_LOCKMETHOD(llock) ((llock).tag.lock.locktag_lockmethodid)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp