Closed Bug 1134920 Opened 10 years ago Closed 10 years ago

Remove nsMemory::Alloc/Free/Realloc

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla40
Tracking Status
firefox40 --- fixed

People

(Reporter: glandium, Assigned: glandium)

References

Details

(Keywords: dev-doc-needed)

Attachments

(2 files, 2 obsolete files)

We have too many allocator wrappers.
Attachment #8566887 - Flags: review?(nfroyd)
Blocks: 1134923
Comment on attachment 8566887 [details] [diff] [review] Remove nsMemory::Alloc/Free/Realloc Ah, I reordered my patch queue, and forgot to s/free/moz_free/ in this patch.
Attachment #8566887 - Flags: review?(nfroyd)
Attachment #8566887 - Attachment is obsolete: true
Attachment #8566901 - Flags: review?(nfroyd)
Comment on attachment 8566901 [details] [diff] [review] Remove nsMemory::Alloc/Free/Realloc This patch reordering thing was a mistake. This really all needs to go on top of mozalloc being merged in mozglue.
Attachment #8566901 - Flags: review?(nfroyd)
Depends on: 868814
Depends on: 1138293
Attachment #8584193 - Flags: review?(nfroyd)
Comment on attachment 8584192 [details] [diff] [review] Use moz_xmalloc/moz_xrealloc/free instead of nsMemory::Alloc/Realloc/Free Review of attachment 8584192 [details] [diff] [review]: ----------------------------------------------------------------- We should really be using new/delete/smart pointers for some of these. :( (Not your problem.) Thank you for fixing the comments as well.
Attachment #8584192 - Flags: review?(nfroyd) → review+
Attachment #8584193 - Flags: review?(nfroyd) → review+
At least this needs some update: https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsIMemory Like with bug 1138293. I want to discuss how best to update the doc(s).
Keywords: dev-doc-needed
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
Depends on: 1150176
Depends on: 1150213
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: