Open Bug 1478751 Opened 7 years ago Updated 1 year ago

Instances of AutoSuppressGCAnalysis in JS::ubi::Concrete<nsINode> need to be cleaned up

Categories

(Core :: JavaScript Engine, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: KrisWright, Unassigned)

References

(Blocks 1 open bug)

Details

Instances like DocAddSizeOfIncludingThis() called in JS::ubi::Concrete<nsINode> and inheriting classes are seen as potential GC hazards. In the interim, AutoSuppressGCAnalysis objects are used to prevent hazards. We want to clean up these instances by adding an exception for DocAddSizeOfExcludingThis in isOverridableField in annotations.js [1], and address other instances of AutoSuppressGCAnalysis in JS::ubi::Concrete<nsINode> and JS::ubi::Concrete<JSObject> [2]. 1. https://searchfox.org/mozilla-central/rev/943a6cf31a96eb439db8f241ab4df25c14003bb8/js/src/devtools/rootAnalysis/annotations.js#385 2. See Bug 1474383
Priority: -- → P3
Kristen, are you interested in working on this?
Flags: needinfo?(kwright)
Looks like since the filing of this bug some other related rooting analysis issues have been cleaned up so it's definitely worth checking back into. I'll see if I can reduce the volume of AutoSuppressGCAnalysis in NodeUbiReporting.cpp. Right now there's four instances of AutoSuppressGCAnalysis across the JS::ubi::Concrete<JSObject>/JS::ubi::Concrete<nsINode> hook that could potentially be cleaned up.
Flags: needinfo?(kwright)
Severity: normal → S3
Blocks: sm-runtime
Severity: S3 → N/A
You need to log in before you can comment on or make changes to this bug.