Merge lp:~afrantzis/mir/fix-mock-drmgetbusid-race into lp:~mir-team/mir/trunk
Status: | Merged |
---|---|
Approved by: | Alan Griffiths |
Approved revision: | no longer in the source branch. |
Merged at revision: | 808 |
Proposed branch: | lp:~afrantzis/mir/fix-mock-drmgetbusid-race |
Merge into: | lp:~mir-team/mir/trunk |
Diff against target: |
25 lines (+1/-3) 2 files modified
include/test/mir_test_doubles/mock_drm.h (+0/-1) tests/mir_test_doubles/mock_drm.cpp (+1/-2) |
To merge this branch: | bzr merge lp:~afrantzis/mir/fix-mock-drmgetbusid-race |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Alan Griffiths | Approve | ||
Review via email: mp+172964@code.launchpad.net |
Commit message
tests: Fix race condition in MockDRM leading to memory errors
Previously, because we allocated and returned memory in two step, using
a unique storage point to hold the allocated memory, there was the
potential for memory errors (e.g. double frees) in multithreaded tests
(like drm_close_
Description of the change
tests: Fix race condition in MockDRM leading to memory errors
Previously, because we allocated and returned memory in two step, using
a unique storage point to hold the allocated memory, there was the
potential for memory errors (e.g. double frees) in multithreaded tests
(like drm_close_
It isn't obvious why, but this appears to fix https:/ /bugs.launchpad .net/mir/ +bug/1197408