Closed
Bug 53303
Opened 24 years ago
Closed 11 years ago
fix or remove nsCRT::strdup to use the NS_ allocator
Categories
(Core :: XPCOM, defect, P2)
Core
XPCOM
Tracking
()
RESOLVED
DUPLICATE
of bug 901820
mozilla2.0
People
(Reporter: dmosedale, Unassigned)
Details
One type signature of nsCRT::strdup() calls nsMemory::Alloc() like one would
hope. Another calls PL_strdup() which only uses PR_Alloc under the covers.
This latter setup misses the memory pressure observers entirely. scc also
pointed out that it could also cause other problems in an embedding case where
nsMemory::Alloc() doesn't end up calling PR_Alloc under the covers.
This also brings up the question of whether other libraries in the Mozilla code
base (eg png, gif, jpg, zip, ldap, js) should be instrumented to somehow use
nsMemory under the covers as well.
Updated•24 years ago
|
Status: NEW → ASSIGNED
Reporter | ||
Comment 1•24 years ago
|
||
Saw something in one of the status reports implying that Ed might be interested
in this. If not, sorry for spamming you and feel free to remove yourself.
Updated•19 years ago
|
QA Contact: rayw → xpcom
Updated•15 years ago
|
Assignee: scc → nobody
Priority: P3 → P2
Summary: inconsistent allocator usage → fix or remove nsCRT::strdup to use the NS_ allocator
Target Milestone: --- → mozilla1.9.3
Comment 2•15 years ago
|
||
This is a mass change. Every comment has "assigned-to-new" in it.
I didn't look through the bugs, so I'm sorry if I change a bug which shouldn't be changed. But I guess these bugs are just bugs that were once assigned and people forgot to change the Status back when unassigning.
Status: ASSIGNED → NEW
Updated•15 years ago
|
Target Milestone: mozilla1.9.3 → mozilla2.0
Updated•11 years ago
|
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•