-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Linkname removal (step 1) #16016
Linkname removal (step 1) #16016
Conversation
Signed-off-by: Vicent Marti <[email protected]>
Signed-off-by: Vicent Marti <[email protected]>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Signed-off-by: Vicent Marti <[email protected]>
Signed-off-by: Vicent Marti <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #16016 +/- ##
==========================================
+ Coverage 68.27% 68.29% +0.01%
==========================================
Files 1562 1564 +2
Lines 197319 197499 +180
==========================================
+ Hits 134714 134876 +162
- Misses 62605 62623 +18 ☔ View full report in Codecov by Sentry. |
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.
A bunch of copy paste from Go, but that seems like the right answer here!
// Copied from the Go runtime, msize_noallocheaders.go | ||
|
||
package hack | ||
|
||
const ( |
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.
Does that mean that every time the go runtime changes for this file (and also the package strconv
) we will need to re-copy the file?
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.
For msize
yes, that's the price of keeping our memory usage statistics accurate. FWIW, this file hasn't been changed in more than 5 years: the sizes of the GC allocations are pretty much settled at this point.
For strconv
, no. We have adapted the function to parse exactly the syntax that MySQL expects, so we do not need to ever upgrade it in the future.
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.
Okay got it. I was worried these were changing often every x release, but if it has not for over 5 years that's nice
Description
First step towards fixing #16015.
In this PR I've cleaned up to
Atof
routines, the internalstrhash
and the memory size calculator. The only remaininglinkname
usage in thehack
package is to disable serialization randomness in ProtoBuf.Related Issue(s)
go:linkname
(de)stabilization #16015Checklist
Deployment Notes