Closed Bug 1598133 Opened 5 years ago Closed 3 years ago

Revisit manual ref-counting in ProfilingStackOwner

Categories

(Core :: Gecko Profiler, task, P3)

72 Branch
task

Tracking

()

RESOLVED FIXED
Tracking Status
firefox72 --- affected
firefox93 --- fixed

People

(Reporter: mozbugz, Unassigned)

References

Details

In bug 1445822, ProfilingStackOwner originally used the standard NS_INLINE_DECL_THREADSAFE_REFCOUNTING ref-counting macro, but that resulted in test failures due to apparent leak checks:

TEST-UNEXPECTED-FAIL | leakcheck | tab 32 bytes leaked (ProfilingStackOwner)

I believe the handling was correct, but that the leak checker may run before both the profiler and all registered threads would end, meaning that the leak checker sees still-living objects.

This bug should first verify that the handling is indeed correct (so there's no actual leaks when the program ends), and attempt to safely eliminate leak checker warnings if possible.

ProfilingStackOwner is no more!
So I'll mark this bug here effectively fixed, because bug 1722261 removed the need for ref-counting by removing the whole class.

Depends on: 1722261

Simon says mark bug fixed. 😅

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.