From a7e21703f608ca568195cb467250c1c3c06c0a1e Mon Sep 17 00:00:00 2001 From: Cameron McCormack Date: Fri, 21 Jul 2017 11:51:04 +0800 Subject: [PATCH] Bug 1380133 - Part 10: Whitelist nsStyleContext::PeekStyleXXX for heap writes. r=heycam MozReview-Commit-ID: BLlJm7JUnOq --HG-- extra : rebase_source : 424d25b0dd3ea76c2df9a304d9ff734f8f4cc2be --- js/src/devtools/rootAnalysis/analyzeHeapWrites.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/src/devtools/rootAnalysis/analyzeHeapWrites.js b/js/src/devtools/rootAnalysis/analyzeHeapWrites.js index 024a92674c45..ae1f61edeb87 100644 --- a/js/src/devtools/rootAnalysis/analyzeHeapWrites.js +++ b/js/src/devtools/rootAnalysis/analyzeHeapWrites.js @@ -413,6 +413,10 @@ function ignoreContents(entry) "Gecko_CopyMozBorderColors", "Gecko_SetNullImageValue", + // The analysis thinks we'll write to mBits in the DoGetStyleFoo + // call. Maybe the template parameter confuses it? + /nsStyleContext::PeekStyle/, + // Needs main thread assertions or other fixes. /UndisplayedMap::GetEntryFor/, /nsStyleContext::CalcStyleDifferenceInternal/,