Skip to content

Conversation

@janvorli
Copy link
Member

@janvorli janvorli commented Dec 9, 2025

The implementation was setting an incorrect value as the return value, which caused the System.Threading.Tasks.Tests.ParallelForEachAsyncTests.AllItemsEnumeratedOnce_For to fail intermittently.

There was also a wrong check for alignment of address of the U2 version.

The implementation was setting an incorrect value as the return value, which caused the
System.Threading.Tasks.Tests.ParallelForEachAsyncTests.AllItemsEnumeratedOnce_For to fail
intermittently.

There was also a wrong check for alignment of address of the U2 version.
@janvorli janvorli added this to the 11.0.0 milestone Dec 9, 2025
@janvorli janvorli self-assigned this Dec 9, 2025
Copilot AI review requested due to automatic review settings December 9, 2025 20:56
@janvorli janvorli requested review from BrzVlad and kg as code owners December 9, 2025 20:56
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @BrzVlad, @janvorli, @kg
See info in area-owners.md if you want to be subscribed.

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 fixes critical bugs in the interpreter's implementation of 8-bit and 16-bit compare-exchange operations that were causing intermittent test failures.

Key Changes:

  • Fixed return value calculation in INTOP_COMPARE_EXCHANGE_U1 and U2 to use the actual compare-exchange result instead of a stale loop variable
  • Corrected the alignment check for 16-bit compare-exchange to properly detect misaligned addresses

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.

2 participants