Skip to content

Conversation

@yevgenp
Copy link
Contributor

@yevgenp yevgenp commented Apr 9, 2024

Closes #117

Copy link
Contributor

@tgd tgd left a comment

Choose a reason for hiding this comment

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

Hi @yevgenp thanks for sorting this out 👍

Please can you get the Windows build green before merging - I believe it has been broken for a while but this is a good opportunity to fix it.

@yevgenp yevgenp requested a review from tgd April 9, 2024 14:41
@yevgenp yevgenp changed the title Replace WindowsJNAAffinity.SetThreadAffinityMask with SetProcessAffinityMask. Modify warning logic in WindowsJNAAffinity.setAffinity Apr 10, 2024
}
BitSet affinity2 = getAffinity0();
if (!affinity2.equals(affinity)) {
if (!affinity2.intersects(affinity)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to cover this with a Windows specific unit test?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That warning is being produced on every Windows test (except when run on a single CPU). IMO it would not yield too much value to test a single log line. Especially, when we can't reproduce a negative case.

@peter-lawrey-admin peter-lawrey-admin changed the base branch from develop to review May 23, 2025 08:31
@peter-lawrey-admin peter-lawrey-admin merged commit 1662756 into review May 23, 2025
@peter-lawrey-admin peter-lawrey-admin deleted the affinity branch May 23, 2025 08:32
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.

3 participants