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.

#4 Re:New Memory Management Plan for Feedback

by Gregory

Monday May 10th, 1999 10:19 AM

You are replying to this message

The only safe approach is to provide your own allocator that throws bad_alloc for platforms that don't yet support it. It's too easy to make mistakes, otherwise. Furthermore, have you considered that require in "if (blah==NULL) { do_whatever(); }" *also* results in additional code? I'd be somewhat surprised if gcc's implementation of exceptions is any worse than that. In any event, standard c++ will become more common over time, and all that NULL testing will no longer work on newer platforms.