Bug 1524687: Follow-up: Fix sporadic Windows PGO build bustages. r=bustage CLOSED TREE
☠☠ backed out by 3b1b94e39795 ☠ ☠
authorKris Maglione <maglione.k@gmail.com>
Wed, 13 Feb 2019 20:50:10 -0800
changeset 459037 68cffca6927a
parent 459036 95fd39d659bc
child 459038 328de611bcd3
push id111911
push usermaglione.k@gmail.com
push dateThu, 14 Feb 2019 04:51:20 +0000
treeherdermozilla-inbound@68cffca6927a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
bugs1524687
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1524687: Follow-up: Fix sporadic Windows PGO build bustages. r=bustage CLOSED TREE
xpcom/components/nsComponentManager.cpp
--- a/xpcom/components/nsComponentManager.cpp
+++ b/xpcom/components/nsComponentManager.cpp
@@ -749,17 +749,19 @@ void nsComponentManagerImpl::RegisterCon
     LogMessage(
         "Could not map contract ID '%s' to CID %s because no implementation of "
         "the CID is registered.",
         aEntry->contractid, AutoIDString(*aEntry->cid).get());
 
     return;
   }
 
-  mContractIDs.Put(AsLiteralCString(aEntry->contractid), f);
+  auto contract = AsLiteralCString(aEntry->contractid);
+  StaticComponents::InvalidateContractID(contract);
+  mContractIDs.Put(contract, f);
 }
 
 static void CutExtension(nsCString& aPath) {
   int32_t dotPos = aPath.RFindChar('.');
   if (kNotFound == dotPos) {
     aPath.Truncate();
   } else {
     aPath.Cut(0, dotPos + 1);