search for: smartscopedlock

Displaying 1 result from an estimated 1 matches for "smartscopedlock".

2015 Feb 24
2
[LLVMdev] Removing contention in PassRegistry accesses to speed up compiles
...urn PassRegistryObj; } -static ManagedStatic<sys::SmartMutex<true> > Lock; //===----------------------------------------------------------------------===// // PassRegistryImpl @@ -72,26 +77,23 @@ void *PassRegistry::getImpl() const { // PassRegistry::~PassRegistry() { - sys::SmartScopedLock<true> Guard(*Lock); PassRegistryImpl *Impl = static_cast<PassRegistryImpl*>(pImpl); - + for (std::vector<const PassInfo*>::iterator I = Impl->ToFree.begin(), E = Impl->ToFree.end(); I != E; ++I) delete *I; - + delete Impl; pImpl = 0; } const...