Closed Bug 232022 Opened 21 years ago Closed 21 years ago

nsProxyObject does not need to inherit from nsISupports

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: bryner, Assigned: bryner)

Details

Attachments

(1 file)

Currently nsProxyObject inherits from nsISupports just (apparently) so it can be
refcounted.  It would be more performant for it to just implement its own
refcounting, since the addref and release would not need to be virtual and there
would not need to be a vtable pointer.
Attached patch patchSplinter Review
This does the change I mention above, along with a couple of warning fixes in
the proxy code.  I'm assuming the note about the 'mac compiler' is no longer
relevant.    I also inlined a couple of getters and made the dtor nonvirtual.
Attachment #139781 - Flags: superreview?(dbaron)
Attachment #139781 - Flags: review?(dougt)
Attachment #139781 - Flags: superreview?(dbaron) → superreview+
Attachment #139781 - Flags: review?(dougt) → review+
checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: