-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[core] make static vars const for enforced future thread safety #18753
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
guitargeek
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.
It's possible to determine the lengths at compile time. Like this, we don't need to rely on static variables here at all.
|
Maybe I'm missing something, but how does adding edit: actually, |
Just the |
pcanal
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.
In practice this is a NFC change since the variable were never modified but a good protection against inadvertent changes. Thanks.
Yep, i tried to reflect that in the PR title |
Test Results 19 files 19 suites 3d 16h 56m 45s ⏱️ Results for commit 1f02576. |
|
See #18757 |
This Pull request:
Changes or fixes:
Fixes #18751
This applies the suggestion of Dr15Jones
Checklist: