http://www.oopsla.org/2006/2006/index.php?option=com_content&task=view&id=142&Itemid=374

program registration submissions committee lodging portland

The Dynamics of Changing Dynamic Memory Allocation

The Dynamics of Changing Dynamic Memory Allocation

Changing the approach to dynamic memory allocation in a large legacy application is challenging. In order to improve the robustness of memory allocation, we fundamentally changed it. We replaced standard heap allocation with class-specific heaps. We were able to do it with almost no changes to the existing class code by overriding the new() and delete() operators, and using templates creatively to insert the changes into class hierarchies. The results have been very positive. Misuse of dynamic memory has been detected and errors caused by memory misuse have been avoided. Performance of the new memory management code has been as good or better than the previous code. Additional capabilities such as audits have been added to further increase the robustness of dynamic memory usage.

Neil Harrison, Utah Valley State College
John Meiners, Avaya, inc.

 
Related Onward! Papers
Related Panels
Related Practitioner Reports
Related Research Papers
Related Tutorials
Related Workshops

While Space Available
Search
program registration submissions committee lodging portland
For comments and questions about the web site
please contact us at support@oopsla.org
© 2005 OOPSLA