Mir

Merge lp:~ricmm/mir/lp-1238312 into lp:~mir-team/mir/trunk

Proposed by Ricardo Mendoza
Status: Superseded
Proposed branch: lp:~ricmm/mir/lp-1238312
Merge into: lp:~mir-team/mir/trunk
Diff against target: 13 lines (+1/-1)
1 file modified
src/client/mir_client_library.cpp (+1/-1)
To merge this branch: bzr merge lp:~ricmm/mir/lp-1238312
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Needs Fixing
Daniel van Vugt Needs Resubmitting
Ricardo Salveti (community) Approve
Review via email: mp+190524@code.launchpad.net

This proposal has been superseded by a proposal from 2013-10-11.

Commit message

Invert order of initialization to prevent a corruption issue when initializing the next unordered_set<>. Possible compiler issue.

To post a comment you must log in.
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

The implication is very scary. But the change theoretically harmless.

review: Approve
Revision history for this message
Ricardo Salveti (rsalveti) wrote :

Did test and indeed fixes the wrong behavior (at the compiler level, as the code was already correct it seems). Works fine when built with O2.

Let's merge the workaround as this is critical for touch (and harmless as well).

review: Approve
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Whoops, I just noticed it's targeted at the wrong branch.

Please retarget to: lp:~mir-team/mir/development-branch

All fixes need to go through that branch right now :P

review: Needs Resubmitting
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/client/mir_client_library.cpp'
2--- src/client/mir_client_library.cpp 2013-10-09 12:00:24 +0000
3+++ src/client/mir_client_library.cpp 2013-10-11 03:24:20 +0000
4@@ -35,8 +35,8 @@
5
6 namespace mcl = mir::client;
7
8+std::unordered_set<MirConnection*> MirConnection::valid_connections;
9 std::mutex MirConnection::connection_guard;
10-std::unordered_set<MirConnection*> MirConnection::valid_connections;
11
12 namespace
13 {

Subscribers

People subscribed via source and target branches