Skip to content

[pull] master from microsoft:master#101

Merged
pull[bot] merged 2 commits into
cgallred:masterfrom
microsoft:master
May 19, 2026
Merged

[pull] master from microsoft:master#101
pull[bot] merged 2 commits into
cgallred:masterfrom
microsoft:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented May 19, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

tyrielv added 2 commits May 18, 2026 13:49
.NET 9+ introduced System.Threading.Lock as a dedicated, lightweight
synchronization primitive. Migrate all private lock fields from
`object` + `new object()` to `Lock` + `new Lock()`.

Also replace Monitor.IsEntered() assertions in GitStatusCache with
Lock.IsHeldByCurrentThread, since Lock is not compatible with Monitor
APIs.

20 fields across 19 files updated. No Monitor.Wait/Pulse usage found
in the codebase, so all instances are safe to migrate.

Assisted-by: Claude Opus 4.6
Signed-off-by: Tyrie Vella <tyrielv@gmail.com>
Replace object locks with System.Threading.Lock
@pull pull Bot locked and limited conversation to collaborators May 19, 2026
@pull pull Bot added the ⤵️ pull label May 19, 2026
@pull pull Bot merged commit 1e748bb into cgallred:master May 19, 2026
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant