Bug 1356103 - Part 12: Allow OMT heap writes under Gecko_GetFontMetrics. r=bholley
This isn't great, since although we know that Servo style worker threads
have exclusive write access to the main thread heap due to the use of
the Servo font metrics Mutex, we don't know that we're not modifying
data on the heap that other style worker threads want to read from.
MozReview-Commit-ID: CbSzQFkKG95
--- a/js/src/devtools/rootAnalysis/analyzeHeapWrites.js
+++ b/js/src/devtools/rootAnalysis/analyzeHeapWrites.js
@@ -320,17 +320,18 @@ function ignoreCallEdge(entry, callee)
// (possibly to another). Writes on the origin thread are ok.
if (/::SetName/.test(callee) &&
/::UnlabeledDispatch/.test(name))
{
return true;
}
// We manually lock here
- if ("Gecko_nsFont_InitSystem" == name)
+ if (name == "Gecko_nsFont_InitSystem" ||
+ name == "Gecko_GetFontMetrics")
{
return true;
}
return false;
}
function ignoreContents(entry)