Closed Bug 130135 Opened 24 years ago Closed 24 years ago

nsObserverList has a virtual destructor

Categories

(Core :: XPCOM, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: alecf, Assigned: alecf)

Details

Attachments

(1 file)

I just noticed that nsObserverList is 12 bytes in size even though it only has 8 bytes of member variables.. then I noticed that it has a virtual destructor, which gives it a vtable. It doesn't need this, it's just a concrete class, and this will save it 8 bytes. patch forthcoming.
Can I get a r=dougt or r=dp?
Attachment #73585 - Flags: superreview+
Comment on attachment 73585 [details] [diff] [review] remove the "virtual" sr=darin
Comment on attachment 73585 [details] [diff] [review] remove the "virtual" sr=darin
(oh, I should add that this saves 4 bytes per nsObserverList - in the tinderbox bloat tests, this is only about 104 bytes, but hey it was an easy fix)
Comment on attachment 73585 [details] [diff] [review] remove the "virtual" r=dougt.
Attachment #73585 - Flags: review+
fix went in yesterday
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: