Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't set _playerNode to nil before assignment #553

Merged
merged 2 commits into from
Jan 21, 2025
Merged

Conversation

sbooth
Copy link
Owner

@sbooth sbooth commented Jan 20, 2025

This is a potential fix for #548 and seems preferable to the proposed fix in #549

Not a fix but an improvement for now.

@sbooth
Copy link
Owner Author

sbooth commented Jan 20, 2025

A problem with this proposal is that although x86_64 and arm64 processors guarantee pointer assignments are atomic, the compiler makes no such guarantee. So the assignment of _playerNode could still be problematic.

@sbooth sbooth marked this pull request as ready for review January 21, 2025 04:27
@sbooth sbooth merged commit 0c5f85c into main Jan 21, 2025
1 check passed
@sbooth sbooth deleted the node-assignment branch January 21, 2025 04:28
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.

1 participant