Skip to content

Conversation

mikeash
Copy link
Contributor

@mikeash mikeash commented Jan 31, 2024

The code to copy the refcounts from the object to a new side table wasn't quite right on 32-bit. Fix it to copy the PureSwiftDealloc field, and if the object is immortal, mark the side table's refcount as immortal too.

rdar://121943608

@mikeash mikeash requested a review from a team as a code owner January 31, 2024 22:00
…bit.

The code to copy the refcounts from the object to a new side table wasn't quite right on 32-bit. Fix it to copy the PureSwiftDealloc field, and if the object is immortal, mark the side table's refcount as immortal too.

rdar://121943608
@mikeash mikeash force-pushed the fix-immortal-side-table-32-bit branch from e40f3b2 to 590c33e Compare January 31, 2024 22:08
@mikeash
Copy link
Contributor Author

mikeash commented Jan 31, 2024

@swift-ci please test

Copy link
Contributor

@Catfish-Man Catfish-Man left a comment

Choose a reason for hiding this comment

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

I was fearing this would be MUCH more complicated, happy to see it's not. LGTM

@mikeash mikeash enabled auto-merge February 1, 2024 02:33
@mikeash mikeash merged commit 0b9616c into swiftlang:main Feb 1, 2024
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.

2 participants