forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1908511
committed
Cooperate with the Valgrind instrumentation framework.
Valgrind "client requests" in aset.c and mcxt.c teach Valgrind and itsMemcheck tool about the PostgreSQL allocator. This makes Valgrindroughly as sensitive to memory errors involving palloc chunks as it isto memory errors involving malloc chunks. Further client requests inPageAddItem() and printtup() verify that all bits being added to abuffer page or furnished to an output function are predictably-defined.Those tests catch failures of C-language functions to fully initializethe bits of a Datum, which in turn stymie optimizations that rely on_equalConst(). Define the USE_VALGRIND symbol in pg_config_manual.h toenable these additions. An included "suppression file" silences nominalerrors we don't plan to fix.Reviewed in earlier versions by Peter Geoghegan and Korry Douglas.1 parenta855148 commit1908511
File tree
8 files changed
+361
-7
lines changed- src
- backend
- access/common
- storage/page
- tcop
- utils/mmgr
- include
- utils
- tools
8 files changed
+361
-7
lines changedLines changed: 18 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
| 23 | + | |
23 | 24 |
| |
24 | 25 |
| |
25 | 26 |
| |
| |||
324 | 325 |
| |
325 | 326 |
| |
326 | 327 |
| |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
327 | 341 |
| |
328 | 342 |
| |
| 343 | + | |
| 344 | + | |
| 345 | + | |
329 | 346 |
| |
| 347 | + | |
330 | 348 |
| |
331 | 349 |
| |
332 | 350 |
| |
|
Lines changed: 15 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
| 20 | + | |
20 | 21 |
| |
21 | 22 |
| |
22 | 23 |
| |
| |||
297 | 298 |
| |
298 | 299 |
| |
299 | 300 |
| |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
300 | 315 |
| |
301 | 316 |
| |
302 | 317 |
| |
|
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
69 | 69 |
| |
70 | 70 |
| |
71 | 71 |
| |
| 72 | + | |
72 | 73 |
| |
73 | 74 |
| |
74 | 75 |
| |
| |||
846 | 847 |
| |
847 | 848 |
| |
848 | 849 |
| |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
849 | 854 |
| |
850 | 855 |
| |
851 | 856 |
| |
|
0 commit comments
Comments
(0)