-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Base.summarysize for Memory with Union
#57508
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
Base.summarysize for Memory with Union
#57508
Conversation
|
This is only one possible fix. The alternative would be to not account for the union byte array in It might be that there is a more consistent way to define |
Base.summarysize for Memory with UnionBase.summarysize for Memory with Union
LilithHafner
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for contributing, @PatrickHaecker! This looks great to me. I'm going to wait a bit before merging to see of @oscardssmith wants to chime in.
|
thanks for this! |
Fixes the double accounting of the union byte array in
Base.summarysizeas described in #57506.If this is the correct fix, can it be backported to 1.11?
Fix #57506