Closed
Bug 204634
Opened 21 years ago
Closed 21 years ago
remove dynamically allocated hashtable in xpcom where possible.
Categories
(Core :: XPCOM, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: dougt, Assigned: dougt)
Details
Attachments
(1 file)
19.31 KB,
patch
|
alecf
:
review+
|
Details | Diff | Splinter Review |
Comment 1•21 years ago
|
||
This sounds very general... do you have specifics here?
Comment 2•21 years ago
|
||
well, what he's referring to is class members that have this class nsFoo { nsHashtable* mHashtable; } nsFoo::nsFoo() { mHashtable = new nsHashtable(); } nsFoo::~nsFoo() { delete mHashtable; } when in reality, we could save an allocation by just saying: class nsFoo { nsHashtable mHashtable; }; so that its not new/delete'ed...
Comment 3•21 years ago
|
||
(so if anyone wants to go out and FIND this pattern in the tree (Especially in mozilla/xpcom) it would make it way easier to fix them. If that person wants to attach patches, even better! I'll review.
Assignee | ||
Comment 4•21 years ago
|
||
patch coming up.
Assignee | ||
Comment 5•21 years ago
|
||
Assignee | ||
Updated•21 years ago
|
Attachment #124081 -
Flags: review?(alecf)
Comment 6•21 years ago
|
||
Comment on attachment 124081 [details] [diff] [review] update for xpcom (not including obsolete) r=alecf
Attachment #124081 -
Flags: review?(alecf) → review+
Assignee | ||
Comment 7•21 years ago
|
||
Checking in components/nsNativeComponentLoader.cpp; /cvsroot/mozilla/xpcom/components/nsNativeComponentLoader.cpp,v <-- nsNativeComponentLoader.cpp new revision: 1.94; previous revision: 1.93 done Checking in components/nsNativeComponentLoader.h; /cvsroot/mozilla/xpcom/components/nsNativeComponentLoader.h,v <-- nsNativeComponentLoader.h new revision: 1.18; previous revision: 1.17 done Checking in components/xcDll.cpp; /cvsroot/mozilla/xpcom/components/xcDll.cpp,v <-- xcDll.cpp new revision: 1.73; previous revision: 1.72 done Checking in ds/nsObserverService.cpp; /cvsroot/mozilla/xpcom/ds/nsObserverService.cpp,v <-- nsObserverService.cpp new revision: 3.28; previous revision: 3.27 done Checking in glue/standalone/nsGREDirServiceProvider.cpp; /cvsroot/mozilla/xpcom/glue/standalone/nsGREDirServiceProvider.cpp,v <-- nsGREDirServiceProvider.cpp new revision: 1.20; previous revision: 1.19 done Checking in proxy/src/nsProxyEventPrivate.h; /cvsroot/mozilla/xpcom/proxy/src/nsProxyEventPrivate.h,v <-- nsProxyEventPrivate.h new revision: 1.35; previous revision: 1.34 done Checking in proxy/src/nsProxyObjectManager.cpp; /cvsroot/mozilla/xpcom/proxy/src/nsProxyObjectManager.cpp,v <-- nsProxyObjectManager.cpp new revision: 1.53; previous revision: 1.52 done should I just mark this fixed, or should we look expand this bug to other modules?
Comment 8•21 years ago
|
||
seperate bugs for seperate modules...IMO
Assignee | ||
Comment 9•21 years ago
|
||
k
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.
Description
•