Merge lp://qastaging/~alan-griffiths/mir/keep-helgrind-happy into lp://qastaging/mir
Proposed by
Alan Griffiths
Status: | Rejected |
---|---|
Rejected by: | Alan Griffiths |
Proposed branch: | lp://qastaging/~alan-griffiths/mir/keep-helgrind-happy |
Merge into: | lp://qastaging/mir |
Diff against target: |
13 lines (+3/-1) 1 file modified
tests/integration-tests/compositor/test_swapping_swappers.cpp (+3/-1) |
To merge this branch: | bzr merge lp://qastaging/~alan-griffiths/mir/keep-helgrind-happy |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel van Vugt | Disapprove | ||
Kevin DuBois (community) | Approve | ||
Alberto Aguirre (community) | Approve | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Review via email:
|
Commit message
tests: frig code to prevent helgrind seeing a race condition (LP: #1282886)
Description of the change
tests: frig code to prevent helgrind seeing a race condition
After some investigation it became apparent that helgrind is seeing some read access of the address of mutex from the callback *before* the function is re-entered and a new mutex created on the same spot. I don't think the logic is actually wrong (just that helgrind hasn't got a way to sequence the destruction and re-creation of the mutex with the compositing thread).
As we don't need a new mutex for each call I've made it persistent.
To post a comment you must log in.
Unmerged revisions
- 1415. By Alan Griffiths
-
Avoid false positive from helgrind
- 1414. By Alan Griffiths
PASSED: Continuous integration, rev:1415 jenkins. qa.ubuntu. com/job/ mir-team- mir-development -branch- ci/905/ jenkins. qa.ubuntu. com/job/ mir-android- trusty- i386-build/ 993 jenkins. qa.ubuntu. com/job/ mir-clang- trusty- amd64-build/ 990 jenkins. qa.ubuntu. com/job/ mir-mediumtests -trusty- touch/585 jenkins. qa.ubuntu. com/job/ mir-team- mir-development -branch- trusty- amd64-ci/ 635 jenkins. qa.ubuntu. com/job/ mir-team- mir-development -branch- trusty- amd64-ci/ 635/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ mir-team- mir-development -branch- trusty- armhf-ci/ 642 jenkins. qa.ubuntu. com/job/ mir-team- mir-development -branch- trusty- armhf-ci/ 642/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ mir-mediumtests -builder- trusty- armhf/586 jenkins. qa.ubuntu. com/job/ mir-mediumtests -builder- trusty- armhf/586/ artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ mir-mediumtests -runner- mako/561 s-jenkins. ubuntu- ci:8080/ job/touch- flash-device/ 4128
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/mir- team-mir- development- branch- ci/905/ rebuild
http://