Closed
Bug 6984
Opened 25 years ago
Closed 25 years ago
A bug to review profile code re memory management
Categories
(Core Graveyard :: Profile: BackEnd, defect, P3)
Core Graveyard
Profile: BackEnd
Tracking
(Not tracked)
VERIFIED
FIXED
M8
People
(Reporter: racham, Assigned: racham)
References
Details
Attachments
(1 file)
(deleted),
patch
|
Details | Diff | Splinter Review |
Review profile code to avoid memory management and other possible problems.
Updated•25 years ago
|
Summary: A bug to review profile code re memory management
Comment 2•25 years ago
|
||
Added a summary line
*** Bug 7209 has been marked as a duplicate of this bug. ***
Comment 4•25 years ago
|
||
Comment 5•25 years ago
|
||
The patch I attached should clean up the code a bit. It removes some stuff that
isn't needed, looks at bracketing some initializers correctly (You need to
review how I bracked the first one).
It also removes most of the memory allocation from this file as it happens in
stuff that gets called. It appears that things are getting freed properly
offhand in those cases. More review is probably necessary yet though.
Comment 6•25 years ago
|
||
To address the leak of m_reg that was reported on bug #7209, it looks like a
bunch of methods NS_ADDREF(m_reg), but not one of the does an NS_RELEASE() on
it. Should be fairly straightforward to fix. I'll see if I can do it today.
Comment 7•25 years ago
|
||
Actually, I won't be submitting a patch for that. Someone that groks nsCOMPtr
and such should do this, seems wrong to be addref'ing this everywhere in here
like that.
First level review is done. Cleaned up lots of stuff. Still need to work
on NS_ADDREFs and the optimization of code to reduce the profile dll size.
Assignee | ||
Comment 10•25 years ago
|
||
Next level reviews, including using nsCOMPtr and having a global handle for
Profiles subtree will be done in M8.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 11•25 years ago
|
||
Added the required patches. For further improvements, opening a new bug for M9.
Closing this bug.
Comment 12•25 years ago
|
||
Can you point at the version of nsProfile.cpp where these patches were added to
fix the problems? In fact, the changes to support Netcenter stuff added even
more instances of addref'ing the registry and never releasing it.
Assignee | ||
Comment 13•25 years ago
|
||
Bug 9275 is opened to keep track of missed changes and new improvements to
profile module. Though not all, couple of changes like removing unnecessary
memory allocations are incorporated in the current version. I will continue to
work with remaining patches and nsCOMPtr stuff for ADD_REFs in the next two
days. Reopening the bug to fix some more issues and carry minimum number of
changes to M9.
Comment 14•25 years ago
|
||
Clearing Fixed resolution since this bug has been re-opened.
Status: REOPENED → RESOLVED
Closed: 25 years ago → 25 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 15•25 years ago
|
||
All the changes submitted are taken. Latest version (1.23) of nsProfile
incorporates the changes. Further improvements in M9 tracked by the bug 9275.
Closing the bug.
Updated•25 years ago
|
Status: RESOLVED → VERIFIED
Comment 16•25 years ago
|
||
Moving all Profile Manager bugs to new Profile Manager Backend component.
Profile Manager component to be deleted.
Updated•9 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•