Skip to content

[WTF] LockAlgorithm's unlockSlow should not assume LockType is one byte - #77271

Merged
webkit-commit-queue merged 1 commit into
WebKit:mainfrom
kmiller68:eng/WTF-LockAlgorithm-s-unlockSlow-should-not-assume-LockType-is-one-byte
Oct 16, 2026
Merged

webkit-commit-queue merged 1 commit into
WebKit:mainfrom
kmiller68:eng/WTF-LockAlgorithm-s-unlockSlow-should-not-assume-LockType-is-one-byte

Conversation

@kmiller68

@kmiller68 kmiller68 commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

@kmiller68 kmiller68 self-assigned this Oct 16, 2026
@kmiller68
kmiller68 requested a review from a team as a code owner October 16, 2026 12:54
@kmiller68 kmiller68 added the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Oct 16, 2026
https://bugs.webkit.org/show_bug.cgi?id=327826
rdar://190219540

Reviewed by Marcus Plutowski.

The rest of LockAlgorithm uses LockType directly, do the same in
unlockSlow. Also, add some static_asserts and a std::integral constraint
to LockType as drive by fixes.

Test: Tools/TestWebKitAPI/Tests/WTF/Lock.cpp
Canonical link: https://commits.webkit.org/323977@main
@webkit-commit-queue
webkit-commit-queue force-pushed the eng/WTF-LockAlgorithm-s-unlockSlow-should-not-assume-LockType-is-one-byte branch from d3105dd to 2b5d8a2 Compare October 16, 2026 16:48
@webkit-commit-queue

Copy link
Copy Markdown
Collaborator

Committed 323977@main (2b5d8a2): https://commits.webkit.org/323977@main

Reviewed commits have been landed. Closing PR #77271 and removing active labels.

@webkit-commit-queue
webkit-commit-queue merged commit 2b5d8a2 into WebKit:main Oct 16, 2026
@webkit-commit-queue webkit-commit-queue removed the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants