Bug 1341102 - Fix stylo heap analysis bustage ; r=bustage
authorManish Goregaokar <manishearth@gmail.com>
Sat, 27 May 2017 15:29:49 -0700
changeset 361004 fb5302d022465ae0fe31257ca96f75f2501feeff
parent 361003 72204f9be78406873f7ccaecd4e0fdcf9e5b7ca0
child 361005 5246b79016cc5ce2ab6765cc8bab460ee6c495da
push id43584
push usermanishearth@gmail.com
push dateSat, 27 May 2017 22:30:03 +0000
treeherderautoland@fb5302d02246 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
bugs1341102
milestone55.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 1341102 - Fix stylo heap analysis bustage ; r=bustage MozReview-Commit-ID: HvjpMtB8VYL
js/src/devtools/rootAnalysis/analyzeHeapWrites.js
--- a/js/src/devtools/rootAnalysis/analyzeHeapWrites.js
+++ b/js/src/devtools/rootAnalysis/analyzeHeapWrites.js
@@ -211,16 +211,17 @@ function treatAsSafeArgument(entry, varN
         ["Gecko_CopyShapeSourceFrom", "aDst", null],
         ["Gecko_DestroyShapeSource", "aShape", null],
         ["Gecko_StyleShapeSource_SetURLValue", "aShape", null],
         ["Gecko_nsFont_InitSystem", "aDest", null],
         ["Gecko_nsStyleFont_FixupNoneGeneric", "aFont", null],
         ["Gecko_StyleTransition_SetUnsupportedProperty", "aTransition", null],
         ["Gecko_AddPropertyToSet", "aPropertySet", null],
         ["Gecko_CalcStyleDifference", "aAnyStyleChanged", null],
+        ["Gecko_nsStyleSVG_CopyContextProperties", "aDst", null],
     ];
     for (var [entryMatch, varMatch, csuMatch] of whitelist) {
         assert(entryMatch || varMatch || csuMatch);
         if (entryMatch && !nameMatches(entry.name, entryMatch))
             continue;
         if (varMatch && !nameMatches(varName, varMatch))
             continue;
         if (csuMatch && (!csuName || !nameMatches(csuName, csuMatch)))
@@ -324,17 +325,19 @@ function ignoreCallEdge(entry, callee)
     if (/::SetName/.test(callee) &&
         /::UnlabeledDispatch/.test(name))
     {
         return true;
     }
 
     // We manually lock here
     if (name == "Gecko_nsFont_InitSystem" ||
-        name == "Gecko_GetFontMetrics")
+        name == "Gecko_GetFontMetrics" ||
+        name == "Gecko_nsStyleFont_FixupNoneGeneric" ||
+        name == "Gecko_nsStyleFont_FixupMinFontSize")
     {
         return true;
     }
 
     return false;
 }
 
 function ignoreContents(entry)