Skip to content

Commit 3b5af0e

Browse files
committed
C comment: correct use of 64-"byte" cache line size
Reported-by: Kelly Min Discussion: https://postgr.es/m/CAPSbxatOiQO90LYpSC3+svAU9-sHgDfEP4oFhcEUt_X=DqFA9g@mail.gmail.com Backpatch-through: 9.5
1 parent d54f99e commit 3b5af0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/include/storage/buf_internals.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ typedef struct BufferDesc
203203
* Note that local buffer descriptors aren't forced to be aligned - as there's
204204
* no concurrent access to those it's unlikely to be beneficial.
205205
*
206-
* We use 64bit as the cache line size here, because that's the most common
206+
* We use a 64-byte cache line size here, because that's the most common
207207
* size. Making it bigger would be a waste of memory. Even if running on a
208208
* platform with either 32 or 128 byte line sizes, it's good to align to
209209
* boundaries and avoid false sharing.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy