forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita3b3076
committed
Be conservative about alignment requirements of struct epoll_event.
Use MAXALIGN size/alignment to guarantee that later uses of memory arealigned correctly. E.g. epoll_event might need 8 byte alignment on someplatforms, but earlier allocations like WaitEventSet and WaitEvent mightnot sized to guarantee that when purely using sizeof().Found by myself while testing on an Sun Ultra 5 (Sparc IIi) with someeditorializing by Andres Freund.In passing fix a couple typos in the area1 parent4edb7bd commita3b3076
1 file changed
+18
-12
lines changedLines changed: 18 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
475 | 475 |
| |
476 | 476 |
| |
477 | 477 |
| |
478 |
| - | |
| 478 | + | |
479 | 479 |
| |
480 | 480 |
| |
481 | 481 |
| |
| |||
485 | 485 |
| |
486 | 486 |
| |
487 | 487 |
| |
488 |
| - | |
489 |
| - | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
490 | 496 |
| |
491 | 497 |
| |
492 |
| - | |
| 498 | + | |
493 | 499 |
| |
494 |
| - | |
| 500 | + | |
495 | 501 |
| |
496 | 502 |
| |
497 |
| - | |
| 503 | + | |
498 | 504 |
| |
499 | 505 |
| |
500 | 506 |
| |
501 | 507 |
| |
502 | 508 |
| |
503 |
| - | |
| 509 | + | |
504 | 510 |
| |
505 | 511 |
| |
506 |
| - | |
| 512 | + | |
507 | 513 |
| |
508 | 514 |
| |
509 | 515 |
| |
510 |
| - | |
| 516 | + | |
511 | 517 |
| |
512 | 518 |
| |
513 |
| - | |
| 519 | + | |
514 | 520 |
| |
515 | 521 |
| |
516 |
| - | |
| 522 | + | |
517 | 523 |
| |
518 | 524 |
| |
519 | 525 |
| |
| |||
616 | 622 |
| |
617 | 623 |
| |
618 | 624 |
| |
619 |
| - | |
| 625 | + | |
620 | 626 |
| |
621 | 627 |
| |
622 | 628 |
| |
|
0 commit comments
Comments
(0)