- Notifications
You must be signed in to change notification settings - Fork28
Commitb8c6f83

Alexander Korotkov
LWLock optimization for PowerPC processors
PowerPC processors have quite specific implementation of atomic operations:they are implemented optimistically. If value is changed between our read andwrite, then we have to retry. So, CAS operation on this platform becomespotentially infinite loop. Thus, loop of CAS operations becomes two nestedloops. This patch implements LWLockAttemptLock() as single loop in assembly.That shows great speedup on high concurrent workloads.1 parent6a2ea08 commitb8c6f83
1 file changed
+52
-0
lines changedLines changed: 52 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
768 | 768 |
| |
769 | 769 |
| |
770 | 770 |
| |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
771 | 821 |
| |
772 | 822 |
| |
773 | 823 |
| |
| |||
910 | 960 |
| |
911 | 961 |
| |
912 | 962 |
| |
| 963 | + | |
| 964 | + | |
913 | 965 |
| |
914 | 966 |
| |
915 | 967 |
| |
|
0 commit comments
Comments
(0)