Computing Reviews
Today's Issue Hot Topics Search Browse Recommended My Account Log In
Review Help
Search
Garbage collection in the next C++ standard
Boehm H., Spertus M.  ISMM 2009 (Proceedings of the 2009 International Symposium on Memory Management, Dublin, Ireland, Jun 19-20, 2009)30-38.2009.Type:Proceedings
Date Reviewed: Oct 2 2009

Boehm and Spertus, two key insiders, report on the C++ standards committee’s progress toward supporting automatic storage reclamation and memory leak detection. However, Boehm and Spertus do far more than merely list the relevant features included in the committee’s current draft; they also provide a cogent explanation for why these particular features were included, while others were not.

Because garbage collectors need to identify the blocks of memory that are accessible, the draft standard prohibits previously legal actions such as dereferencing a pointer value that was read from an input stream. However, the draft standard does provide an escape valve for programmers who need to write tricky code--they can use a new pair of procedures to explicitly declare reachable memory blocks.

Because C++ has a weak type system, storage declared with integral types can contain pointers. In some programs, this can greatly increase the amount of memory fruitlessly examined for pointers. In fact, this examination can be even worse: nonpointer values can be mistaken for pointers. Therefore, the committee’s draft gives programmers a way to explicitly declare pointer-free memory areas.

To justify these extensions to the C++ standard, Boehm and Spertus explain not only the value they offer, but also the limited cost that they entail. They also describe a more ambitious proposal, and explain why the committee postponed it until the next round of standardization.

Reviewer:  Max Hailperin Review #: CR137343 (1012-1269)
Bookmark and Share
 
Dynamic Storage Management (D.3.3 ... )
 
 
C++ (D.3.2 ... )
 
 
Standards (D.3.0 ... )
 
Would you recommend this review?
yes
no
Other reviews under "Dynamic Storage Management": Date
Reducing the latency of a real-time garbage collector
Johnson R. ACM Letters on Programming Languages and Systems 1(1): 46-58, 1992. Type: Article
Oct 1 1993
The detection of dangling references in C++ programs
Eyre-Todd R. ACM Letters on Programming Languages and Systems 2(1-4): 127-134, 1993. Type: Article
Mar 1 1995
On mobile Java memory consumption
Hartikainen V., Liimatainen P., Mikkonen T.  Parallel, distributed, and network-based processing (Proceedings of the 14th Euromicro International Conference on Parallel, Distributed, and Network-Based Processing (PDP’06), Feb 15-17, 2006)333-339, 2006. Type: Proceedings
Mar 1 2007
more...

E-Mail This Printer-Friendly
Send Your Comments
Contact Us
Reproduction in whole or in part without permission is prohibited.   Copyright 1999-2024 ThinkLoud®
Terms of Use
| Privacy Policy