-
Notifications
You must be signed in to change notification settings - Fork 529
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
Remove -Xcheckinit
compiler flag
#2540
Conversation
-Xcheck-init
compiler flag-Xcheckinit
compiler flag
I'm in favor of removing this, because it causes a volatile field |
I don't know how hard it would be to setup, but if this check is important, maybe we can enable this flag only for testing/CI but remove for release? |
No, I don't agree with that. That could hide bugs. Either there is a good reason that this flag was included and @djspiewak can shed some light on it, or I really don't know why this is here and we can remove it everywhere. |
Btw it was introduced here: |
Before:
After:
|
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.
Sincerely no idea why I explicitly added this. So odd.
@vasilmkd should we consider reverting some of the changes you made to workaround this? E.g. moving things into constructors. Or maybe those were good ideas anyway 👍 |
I'm pretty sure this is responsible for those auto-generated volatile fields that have been taunting @vasilmkd 😆