model-writtenrun 2325 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- David Rowley proposed replacing the modulo operation in FAST_PATH_REL_GROUP() with bitwise-AND because the fast-path lock group count is always a power of two, while noting that the code was probably not particularly hot #1.
- His patch also replaced the group-count doubling loop with an explicit power-of-two calculation, changed the assertion to check that invariant, and moved the upper-limit explanation beside its definition #1.
- Tomas Vondra agreed that the power-of-two assumption was valid, found the accompanying changes acceptable, and offered to commit the patch #2.
- David committed the patch from #1 as 936457419d, preserving its executable changes and revising comments.
- David closed the thread by thanking Tomas and confirming that he had pushed after a few comment tweaks, leaving the proposed work fully landed #3.