-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
runtime: de-duplicate bit operations with math/bits #35569
Comments
The failure only happens when both It might work fine if it is just an atomic counter increment. |
Unifying with fuzzing instrumentation sounds good to me, and would avoid the dependency loop. I can play around with this during the freeze. |
Howdy Austin, Cherry and Matthew? I shall move this to Go1.16, but please feel free to adjust it as you please. |
@aclements No, not yet. |
Moving to Backlog. |
For the page allocator rewrite, @mknyszek tried to depend on
math/bits
in the runtime. This almost works, but conflicts withgo test -coverpkg=all
(#35461) because that tries to instrumentmath/bits
in ways that are incompatible with running inside the runtime. In order to get this working, CL 206199 duplicated somemath/bits
functions into the runtime (and CL 206200 intrinsified them).This duplication was expedient, but unfortunate, and for 1.15 I'd like to reconsider this. A few possibilities:
-coverpkg=all
shouldn't apply to anything the runtime depends on. You'd hardly be losing anything if it didn't covermath/bits
since almost all of those functions are intrinsified anyway.If the cover tool can switch to using compiler-inserted coverage information, rather than source rewriting, it's possible this problem will go away.
/cc @dr2chase @cherrymui @mdempsky
The text was updated successfully, but these errors were encountered: