-
Notifications
You must be signed in to change notification settings - Fork 1k
Use read-only accessors for more call sites #7615
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## ro-access #7615 +/- ##
==========================================
Coverage 99.02% 99.02%
==========================================
Files 87 87
Lines 16903 16903
==========================================
Hits 16739 16739
Misses 164 164 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
No obvious timing issues in HEAD=ro-part-ii Generated via commit 2b330f3 Download link for the artifact containing the test results: ↓ atime-results.zip
|
ben-schwen
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.
Went through all of them and LGTM.
But shouldn't the compiler cry anyway when we write at *_RO vectors since it it basically a write at const int?
I agree the compiler should complain if we get one wrong |
|
(oops @ben-schwen this was targeting the other PR branch, #7611, not |
Yes... I suppose the maximalist way to fix this would be to just replace Line 76 in 596f65d
Another thing to explore could be changing up so that the default is read-only, and defining our own macro for writeable accessors:
But that makes our codebase confusing for outside contributors. |
I just saw it 🙈 |
|
I think it's fine to squash+merge both to Would you mind reviewing it? It'll be easiest for you since you already reviewed this one. |

These call sites were identified by
gemini; it identified the file name & line number of possible sites, and I reviewed and applied the edits. I instructed it to ignore cases like those mentioned in #7611 (comment) -- they are quite numerous and of questionable value; anyway, they are easy to find with regex. The goal here was to comb the source for places that require a bit more contextualization to classify.Currently based against #7611.