-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
[Core] Prevent copying of SelfList
and SelfList::List
#85180
Conversation
The |
984f8d9
to
e701192
Compare
e701192
to
5a0918d
Compare
5a0918d
to
d3bce53
Compare
Copying of these types is unsafe and should be detected Also removed unnecessary constructors for `TileMap` `DebugQuadrant` and `RenderingQuadrant` which used copying of `SelfList::List`
d3bce53
to
904ecb1
Compare
Thanks! |
Thank you! |
Did you verify that ? Because, as far as I remember, those constructors were needed to avoid several issues. Though I guess forbidding the copy as you did would probably trigger a compilation error 🤔 . Anyway, that was just to mention this is probably something we need to keep an eye on. I am not sure why |
I did both by compilation and by that there's no such semantics in the engine, they're created and shared, not copied, were these data elements always ref counted? Looks like a remnant of a version not using that |
Ah that's a good point, that might be it! Good call. |
If the two quadrant types were built from the old |
Copying of these types is unsafe and should be detected
Also removed unnecessary constructors for
TileMap
DebugQuadrant
andRenderingQuadrant
which used copying ofSelfList::List
Bug identified while researching:
Unable to reliably replicate this crash so can't confirm this is a fix, will continue to investigate that fix