-
Notifications
You must be signed in to change notification settings - Fork 1k
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 control variable initialization #1346
Conversation
I'll sign the commit once we agree that this is the correct solution... |
891f900
to
d1fe291
Compare
Previous commit fails due to C++14 compatibility on |
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.
Overall the patch looks good!
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.
Excluding the copyright comment - LGTM
I addressed your reviews and squashed the commits, Thanks! I was thinking that we may add a test for this with a global observer as presented in the original issue #1341. I just do not know where to put it. Do you have a hint where it can go? Or do you think it's not necessary? |
As I understand we cannot reproduce this failure without compiling TBB statically. I don't know if we previously added separate tests for a specific platform. |
Previous to this commit, global scheduler observers would be initialized before the global TBB controllers. Signed off by: Santiago Ospina De Los Ríos <[email protected]>
Maybe add tests for static build? |
Alright, then this is ready from my side. I just amended my commit with the copyright comment (I hope it's correct). There is no changes in the code since the last CI run. |
It might make sense since WASM compile TBB statically. Do you want to contribute it ? 😄 |
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.
LGTM
PR: #1350 |
Description
Fixes initialization order bug stated in #1341 (comment)
Fixes #1341
Type of change
Choose one or multiple, leave empty if none of the other choices apply
Add a respective label(s) to PR if you have permissions
Tests
Documentation
Breaks backward compatibility
Notify the following users
@pavelkumbrasev
Other information