Closed Bug 980181 Opened 11 years ago Closed 8 years ago

Rooting analysis false positive in TryPreserveWrapper

Categories

(Core :: JavaScript: GC, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: khuey, Unassigned)

Details

The analysis is getting confused by the QI here, I think. bz says you can annotate this away somehow.
The stack is: GC Function: _ZN7mozilla3dom18TryPreserveWrapperEP8JSObject|uint8 mozilla::dom::TryPreserveWrapper(JSObject*) void nsWrapperCache::PreserveWrapper(nsISupports*) FieldCall: nsISupports.QueryInterface I can't really whitelist QI. Nor do I want to detect the specific interface you're QI'ing to and start whitelisting individual interfaces. I could whitelist nsWrapperCache::PreserveWrapper. But I know nothing about it, and when I do a dxr search, it comes up with lots and lots of hits for PreserveWrapper (including a scary-looking PreserveWrapperCallback thing). Maybe they're unrelated. You're sure it's ok? If so, I'm still inclined to do it via an AutoAssertNoGC RAII helper -- then I won't need to modify the analysis, and it'll assert if you lied to me.
I guess this got fixed one way or another.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.