Skip to content

Conversation

@compnerd
Copy link
Member

Correct the counting between forEachField and getNumFields to correctly enumerate the synthesized fields. We would previously fail to count the non-root default actor resulting in a mismatch on the stored field counts. Fortunately, we were able to catch this by means of an assertion in the compiler which triggered on Windows.

Special thanks to @etcwilde for the help in tracking this down!

rdar://106822386

Correct the counting between `forEachField` and `getNumFields` to
correctly enumerate the synthesized fields.  We would previously fail to
count the non-root default actor resulting in a mismatch on the stored
field counts.  Fortunately, we were able to catch this by means of an
assertion in the compiler which triggered on Windows.

Special thanks to @etcwilde for the help in tracking this down!

rdar://106822386
@compnerd compnerd requested a review from ktoso as a code owner March 16, 2023 21:52
@compnerd
Copy link
Member Author

CC: @etcwilde @tshortli

Copy link
Member

@etcwilde etcwilde left a comment

Choose a reason for hiding this comment

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

Yeah, this makes more sense than repeating the same condition. Thanks for having a Windows box to pull numbers from.

@compnerd
Copy link
Member Author

@swift-ci please test

Copy link
Contributor

@ktoso ktoso left a comment

Choose a reason for hiding this comment

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

Oh no, sorry for the typo and thank you for the fix. I was under the impression we were requiring windows to pass for “please test and merge” seems that was changed again huh

For what its worth this was a real bug "everywhere", so thank you

@compnerd
Copy link
Member Author

@swift-ci please test macOS platform

@ktoso ktoso added concurrency Feature: umbrella label for concurrency language features distributed Feature → concurrency: distributed actor labels Mar 16, 2023
@ktoso ktoso merged commit 06725cc into swiftlang:main Mar 17, 2023
@compnerd compnerd deleted the 106822386 branch March 17, 2023 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

concurrency Feature: umbrella label for concurrency language features distributed Feature → concurrency: distributed actor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants