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

@janvorli
Copy link
Member Author

/ba-g the linux x64 leg test failure is #122404, unrelated to this change

@janvorli janvorli merged commit 9ab6b9d into dotnet:main Dec 10, 2025
106 of 108 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 10, 2026
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.

2 participants