Skip to content

Remove redundant fAcquireLock from binder SetupBindingPaths - #132290

Merged
elinor-fung merged 3 commits into
mainfrom
copilot/check-facquirelock-parameter
Aug 14, 2026
Merged

Remove redundant fAcquireLock from binder SetupBindingPaths#132290
elinor-fung merged 3 commits into
mainfrom
copilot/check-facquirelock-parameter

Conversation

Copilot AI commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Removes a dead boolean parameter from CoreCLR binder path setup. ApplicationContext::SetupBindingPaths had a lock-control argument that was always passed as TRUE.

Co-authored-by: elinor-fung <47805090+elinor-fung@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings August 13, 2026 19:58
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR simplifies the CoreCLR binder ApplicationContext::SetupBindingPaths API by removing the now-redundant fAcquireLock parameter and unconditionally acquiring the application context critical section while initializing binding path state.

Changes:

  • Removed the fAcquireLock parameter from ApplicationContext::SetupBindingPaths (declaration + definition).
  • Updated SetupBindingPaths to always take the context lock via CRITSEC_Holder contextLock(GetCriticalSectionCookie()).
  • Updated the sole call site in DefaultAssemblyBinder::SetupBindingPaths to match the new signature.
Show a summary per file
File Description
src/coreclr/binder/inc/applicationcontext.hpp Updates ApplicationContext::SetupBindingPaths declaration to remove fAcquireLock.
src/coreclr/binder/applicationcontext.cpp Removes conditional locking and always acquires the context critical section in SetupBindingPaths.
src/coreclr/binder/defaultassemblybinder.cpp Updates the only call site to the new SetupBindingPaths signature.

Review details

  • Files reviewed: 3/3 changed files
  • Comments generated: 0
  • Review effort level: Lite

Copilot AI changed the title Remove unused fAcquireLock parameter from SetupBindingPaths Remove redundant fAcquireLock from binder SetupBindingPaths Aug 13, 2026
Copilot AI requested a review from elinor-fung August 13, 2026 20:11
@elinor-fung
elinor-fung marked this pull request as ready for review August 13, 2026 20:31
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @agocke, @elinor-fung
See info in area-owners.md if you want to be subscribed.

Comment thread src/coreclr/binder/applicationcontext.cpp Outdated
Comment thread src/coreclr/binder/applicationcontext.cpp Outdated
Comment thread src/coreclr/binder/applicationcontext.cpp Outdated
Copilot AI review requested due to automatic review settings August 13, 2026 23:01
Comment thread src/coreclr/binder/applicationcontext.cpp Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review details

  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread src/coreclr/binder/applicationcontext.cpp
@elinor-fung

Copy link
Copy Markdown
Member

/ba-g build analysis misclassifying known test failures - dotnet/arcade#17340

@elinor-fung
elinor-fung merged commit 7cb858d into main Aug 14, 2026
98 of 101 checks passed
@elinor-fung
elinor-fung deleted the copilot/check-facquirelock-parameter branch August 14, 2026 15:37
@github-project-automation github-project-automation Bot moved this to Done in AppModel Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants