Open Bug 1426696 Opened 3 years ago

Support named inherited addref/release without special casing for Runnable

Categories

(Core :: XPCOM, enhancement)

enhancement
Not set
normal

Tracking

()

People

(Reporter: mccr8, Unassigned)

References

Details

Bug 1410209 adds support for passing in a custom name for refcount logging, but to work with INHERITED, we have to skip logging for the subclass, because the custom name in the parent class will be the same name as the current class, and we can't log a single class name with two different sizes. I implemented this with a special case to check for Runnable, but if we want to support named refcount logging for more classes, it would be better to use template wizardry rather than requiring every such new class be added to a list here. See bug 1410209, comment 37.
You need to log in before you can comment on or make changes to this bug.