Skip to content
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

fix race in resolving defines and checking defaults #45

Merged
merged 1 commit into from
Dec 7, 2020

Conversation

eugene536
Copy link
Contributor

When we check that the default argument of interface or abstract method has the same value as every overloaded method from derived classes we have a data race. InlineDefinesUsagesPass tries can inline defines used as default value at the same time when we investigate such a situation.

Now we separate that check and do it after the synchronization pipe GenerateVirtualMethods.

compiler/vertex-meta_op_base.h Outdated Show resolved Hide resolved
compiler/pipes/check-abstract-function-defaults.cpp Outdated Show resolved Hide resolved
@eugene536 eugene536 force-pushed the fix_race_when_check_abstract_defaults branch from 8894850 to fe2fc60 Compare November 28, 2020 18:48
@eugene536 eugene536 force-pushed the fix_race_when_check_abstract_defaults branch from fe2fc60 to 74f6f51 Compare November 28, 2020 19:04
@eugene536 eugene536 merged commit 1c9e04c into master Dec 7, 2020
@eugene536 eugene536 deleted the fix_race_when_check_abstract_defaults branch December 7, 2020 14:43
@tolk-vm tolk-vm added this to the 11/12/2020 milestone Dec 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants