Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Oct 28, 2025

The PulseAllHelper method in src/coreclr/vm/comsynchronizable.cpp is an unused leftover from legacy Monitor implementation code. It performed monitor operations on exposed thread objects but is no longer invoked in any documented or required code path.

Changes

  • Removed PulseAllHelper static function (26 lines)
  • Removed call from KickOffThread after thread completion
  • Removed call from ThreadNative_Start on thread startup failure

Related to #118371 which modernizes Monitor implementation.

Original prompt

Delete the unused PulseAllHelper method from the codebase. The method is defined in src/coreclr/vm/comsynchronizable.cpp and is not referenced or required for any documented or public behavior. It appears to be an old, leftover helper and its removal will help clean up the code. Ensure that all related declarations are also removed if present (such as in a header file). No functional changes should occur as a result of this deletion. The removal has been confirmed as safe from code search and context.

Context for this request includes PR #118371 (#118371) which is modernizing Monitor's implementation and cleaning up related unused helpers.

This pull request was created as a result of the following prompt from Copilot chat.

Delete the unused PulseAllHelper method from the codebase. The method is defined in src/coreclr/vm/comsynchronizable.cpp and is not referenced or required for any documented or public behavior. It appears to be an old, leftover helper and its removal will help clean up the code. Ensure that all related declarations are also removed if present (such as in a header file). No functional changes should occur as a result of this deletion. The removal has been confirmed as safe from code search and context.

Context for this request includes PR #118371 (#118371) which is modernizing Monitor's implementation and cleaning up related unused helpers.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI self-assigned this Oct 28, 2025
Co-authored-by: jkotas <6668460+jkotas@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove unused PulseAllHelper method from codebase Remove unused PulseAllHelper method Oct 28, 2025
Copilot finished work on behalf of jkotas October 28, 2025 04:57
Copilot AI requested a review from jkotas October 28, 2025 04:57
@jkotas jkotas marked this pull request as ready for review October 28, 2025 05:00
Copy link
Contributor

Copilot AI left a comment

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 removes the unused PulseAllHelper static method from the CoreCLR VM, cleaning up legacy Monitor implementation code. The method performed monitor operations on exposed thread objects but is no longer invoked anywhere in the codebase.

Key changes:

  • Deleted the 26-line PulseAllHelper function definition
  • Removed two call sites: one after thread completion in KickOffThread and one on startup failure in ThreadNative_Start

@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @mangod9
See info in area-owners.md if you want to be subscribed.

@jkotas
Copy link
Member

jkotas commented Oct 28, 2025

/azp run runtime-coreclr outerloop

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jkotas
Copy link
Member

jkotas commented Oct 28, 2025

/ba-g infrastructure timeouts

@jkotas jkotas merged commit 963f8a4 into main Oct 28, 2025
147 of 154 checks passed
@jkotas jkotas deleted the copilot/delete-unused-pulseallhelper branch October 28, 2025 20:09
jkoritzinsky added a commit to jkoritzinsky/runtime that referenced this pull request Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants