Skip to content

Reduce JTF dependency graph lock contention - #1715

Closed
David Kean (davkean) wants to merge 1 commit into
microsoft:mainfrom
davkean:dev/davkean/pool-jtf-dependency-notifications
Closed

David Kean (davkean) wants to merge 1 commit into
microsoft:mainfrom
davkean:dev/davkean/pool-jtf-dependency-notifications

Conversation

@davkean

Copy link
Copy Markdown
Member

Dependency registration currently allocates collection storage and repeats completion locking while holding the context-wide lock, extending waits for unrelated tasks. Shorten this critical section without weakening synchronization or increasing allocations. Preserve reference counting, key equality, pending-work accounting, and queue-draining behavior, with notifications still pulsed outside the lock.

Shorten dependency registration critical sections without increasing allocations. Keep small dependency maps inline, avoid redundant completion locks, and reuse notification buffers while preserving graph and queue semantics.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

1 participant