Closed qbojj closed 7 months ago
Hi @qbojj!
Thank you for your pull request and welcome to our community.
In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.
In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.
Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed
. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.
If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
b5b94ed
) 62.51% compared to head (8e265f3
) 62.50%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This is great, thanks for taking the time to fix this! Would you consider instead fixing the isStorageInline
helper in OITraceCode.cpp
and updating these containers to use that check? This would help others avoid this mistake in the future.
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!
I was thinking about making a helper, but (as I don't know the structure of this project) I wasn't sure where to put it. Well as it turns out there was already a helper but no one was using it.
BTW this exact problem could be seen in the presentation during CppCon (YouTube).
Summary
The sso flag in string types was calculated wrongly:
But because the
&container
is of typestd::basic_string<>*
the + already multiplies by sizeof.Note:
Some other types had similar problem, so I have changed them too.