MozillaZine

Full Article Attached New Memory Management Plan for Feedback

Saturday May 8th, 1999

Rick Gessner, Director of Engineering of NGLayout at Netscape, is calling for standardization in Mozilla's memory management techniques. If you are a mozilla developer, please read this, and post any comments to Rick's duplicate post in the layout newsgroup. Click Full Article below to read Rick's report.


#2 Re:New Memory Management Plan for Feedback

by Brendan Eich <brendan@mozilla.org>

Sunday May 9th, 1999 2:12 PM

You are replying to this message

C++ exceptions are not up to snuff on all platforms; see <http://www.mozilla.org/do…atBuild/portable-cpp.html> for details, and tell Ramiro (mailto:<ramiro@netscape.com>) if you have new data.

Here are some links and prior art that should be incorporated into rickg's fine proposal:

Step 4: we already have an nsIAllocator, it has existed for a while: <http://lxr.mozilla.org/mo…com/public/nsIAllocator.h>

Use it either by getting its service (for example, <http://lxr.mozilla.org/mo…base/src/nsBuffer.cpp#324>), or by statically linking with the xpcom library and calling the nsAllocator class's static methods (<http://lxr.mozilla.org/mo…/public/nsIAllocator.h#88>).

Arena links: <http://lxr.mozilla.org/mo…ource/base/src/nsIArena.h> <http://lxr.mozilla.org/mo…/nsprpub/lib/ds/plarena.h>

Smart pointers links: <http://lxr.mozilla.org/mo…e/xpcom/public/nsCOMPtr.h> <http://lxr.mozilla.org/mo…om/public/nsXPIDLString.h>

/be