- Notifications
You must be signed in to change notification settings - Fork5
Commit9f84280
committed
Fix assorted defects in09adc9a.
That commit increased all shared memory allocations to the next highermultiple of PG_CACHE_LINE_SIZE, but it didn't ensure that allocationstarted on a cache line boundary. It also failed to remove a coupleother pieces of now-useless code.BUFFERALIGN() is perhaps obsolete at this point, and likely should beremoved at some point, too, but that seems like it can be left to afuture cleanup.Mistakes all pointed out by Andres Freund. The patch is mine, witha few extra assertions which I adopted from his version of this fix.1 parent7cb1db1 commit9f84280
2 files changed
+17
-13
lines changedLines changed: 6 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
76 | 76 |
| |
77 | 77 |
| |
78 | 78 |
| |
79 |
| - | |
80 |
| - | |
81 |
| - | |
82 |
| - | |
83 |
| - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
84 | 82 |
| |
85 | 83 |
| |
86 | 84 |
| |
87 | 85 |
| |
88 | 86 |
| |
89 | 87 |
| |
90 | 88 |
| |
91 |
| - | |
92 |
| - | |
93 |
| - | |
94 |
| - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
95 | 92 |
| |
96 | 93 |
| |
97 | 94 |
| |
|
Lines changed: 11 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
112 | 112 |
| |
113 | 113 |
| |
114 | 114 |
| |
| 115 | + | |
115 | 116 |
| |
116 | 117 |
| |
117 | 118 |
| |
| |||
139 | 140 |
| |
140 | 141 |
| |
141 | 142 |
| |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
142 | 148 |
| |
143 | 149 |
| |
144 | 150 |
| |
| |||
189 | 195 |
| |
190 | 196 |
| |
191 | 197 |
| |
192 |
| - | |
193 |
| - | |
194 |
| - | |
195 |
| - | |
196 | 198 |
| |
197 | 199 |
| |
198 | 200 |
| |
| |||
209 | 211 |
| |
210 | 212 |
| |
211 | 213 |
| |
| 214 | + | |
| 215 | + | |
212 | 216 |
| |
213 | 217 |
| |
214 | 218 |
| |
| |||
425 | 429 |
| |
426 | 430 |
| |
427 | 431 |
| |
| 432 | + | |
| 433 | + | |
| 434 | + | |
428 | 435 |
| |
429 | 436 |
| |
430 | 437 |
| |
|
0 commit comments
Comments
(0)