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

Commit4bc15a8

Browse files
committed
Mark FastPathStrongRelationLocks volatile.
Otherwise, the compiler might decide to move modifications to datawithin this structure outside the enclosing SpinLockAcquire /SpinLockRelease pair, leading to shared memory corruption.This may or may not explain a recent lmgr-related buildfarm failureon prairiedog, but it needs to be fixed either way.
1 parent0f95b72 commit4bc15a8

File tree

1 file changed

+1
-1
lines changed
  • src/backend/storage/lmgr

1 file changed

+1
-1
lines changed

‎src/backend/storage/lmgr/lock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ typedef struct
238238
uint32count[FAST_PATH_STRONG_LOCK_HASH_PARTITIONS];
239239
}FastPathStrongRelationLockData;
240240

241-
staticFastPathStrongRelationLockData*FastPathStrongRelationLocks;
241+
staticvolatileFastPathStrongRelationLockData*FastPathStrongRelationLocks;
242242

243243

244244
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp