<table><tr><td style="">brauch created this revision.<br />brauch added a reviewer: flherne.<br />Restricted Application added a subscriber: kdevelop-devel.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D9016" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Having looked at <a href="https://bugs.kde.org/show_bug.cgi?id=385107" class="remarkup-link" target="_blank" rel="noreferrer">https://bugs.kde.org/show_bug.cgi?id=385107</a> for a while, it seems to me like compilers do really strange thingsā„¢ when having multiple nontrivially constructed global static variables in a threaded environment. Probably the best solution is to simply remove all the global statics, and use free functions instead. While we're at it, I turned the Helper class into a namespace, it only has static member functions anyways.</p>

<p>All this code needs lots of refactoring and cleanup other than this change, but we have to start somewhere ...</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Tests pass. Bug 385107 is untestable because it's super rare.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R53 KDevelop: Python Support</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D9016" rel="noreferrer">https://phabricator.kde.org/D9016</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>duchain/helpers.cpp<br />
duchain/helpers.h<br />
projectconfig/projectconfigpage.cpp<br />
pythonparsejob.cpp</div></div></div><br /><div><strong>To: </strong>brauch, flherne<br /><strong>Cc: </strong>kdevelop-devel<br /></div>