forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd3bbc4b
committed
Add valgrind suppressions for wcsrtombs optimizations
wcsrtombs (called through wchar2char from common functions like lower,upper, etc.) uses various optimizations that may look like access touninitialized data, triggering valgrind reports.For example AVX2 instructions load data in 256-bit chunks, and gconvdoes something similar with 32-bit chunks. This is faster than accessingthe bytes one by one, and the uninitialized part of the buffer is notactually used. So suppress the bogus reports.The exact stack depends on possible optimizations - it might be AVX, SSE(as in the report by Aleksander Alekseev) or something else. Hence thelast frame is wildcarded, to deal with this.Backpatch all the way back to 9.4.Author: Tomas VondraDiscussion:https://www.postgresql.org/message-id/flat/90ac0452-e907-e7a4-b3c8-15bd33780e62%402ndquadrant.comDiscussion:https://www.postgresql.org/message-id/20180220150838.GD18315@e733.localdomain1 parent37afc07 commitd3bbc4b
1 file changed
+36
-0
lines changedLines changed: 36 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
212 | 212 |
| |
213 | 213 |
| |
214 | 214 |
| |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + |
0 commit comments
Comments
(0)