Get 20M+ Full-Text Papers For Less Than $1.50/day. Start a 14-Day Trial for You or Your Team.

Learn More →

The detection of dangling references in C++ programs

The detection of dangling references in C++ programs The Detection of Dangling References in C++ Programs RICHARD A. EYRE-TODD University of Edinburgh The smart pointer functionality of the is a programming technique for the C++ language that extends the been used to support simple pointer. Smart pointers have previously persistence, distributed objects, reference counting, and garbage collection. This article will show how smart pointers can provide an inexpensive method for detecting dangling pointers to dynamic objects that can be added to any standard C++ implementation. Categories and Subject Descriptors: D.1.5 [Programming Techniques]: Object-Oriented ProEngineering]: Testing and Debugging-debugging aids; D.3.3 gramming; D.2.5 [Software [Programming Languages]: Language Constructs and Features ”data types and structures; dynamic storage management General Terms: Languages, Reliability Additional Key Words and Phrases: Dangling pointers, smart pointers INTRODUCTION The classic dangling reference problem, where a pointer references storage space that has been deallocated, is usually very difilcult to detect and trace. Language run-time systems commonly do not provide any protection against dangling so. The substitutes [Stroustrup tent objects 1992; reference C++ errors due to the overhead 1991] to that maybe the incurred by doing of pointer pointers persis[Coplien garbage language that add [Stroustrup functionality allows the basic construction pointer. Smart 1987] and variations thereof have http://www.deepdyve.com/assets/images/DeepDyve-Logo-lg.png ACM Letters on Programming Languages and Systems (LOPLAS) Association for Computing Machinery

The detection of dangling references in C++ programs

Loading next page...
 
/lp/association-for-computing-machinery/the-detection-of-dangling-references-in-c-programs-K8HC059cDp
Publisher
Association for Computing Machinery
Copyright
Copyright © 1993 by ACM Inc.
ISSN
1057-4514
DOI
10.1145/176454.176504
Publisher site
See Article on Publisher Site

Abstract

The Detection of Dangling References in C++ Programs RICHARD A. EYRE-TODD University of Edinburgh The smart pointer functionality of the is a programming technique for the C++ language that extends the been used to support simple pointer. Smart pointers have previously persistence, distributed objects, reference counting, and garbage collection. This article will show how smart pointers can provide an inexpensive method for detecting dangling pointers to dynamic objects that can be added to any standard C++ implementation. Categories and Subject Descriptors: D.1.5 [Programming Techniques]: Object-Oriented ProEngineering]: Testing and Debugging-debugging aids; D.3.3 gramming; D.2.5 [Software [Programming Languages]: Language Constructs and Features ”data types and structures; dynamic storage management General Terms: Languages, Reliability Additional Key Words and Phrases: Dangling pointers, smart pointers INTRODUCTION The classic dangling reference problem, where a pointer references storage space that has been deallocated, is usually very difilcult to detect and trace. Language run-time systems commonly do not provide any protection against dangling so. The substitutes [Stroustrup tent objects 1992; reference C++ errors due to the overhead 1991] to that maybe the incurred by doing of pointer pointers persis[Coplien garbage language that add [Stroustrup functionality allows the basic construction pointer. Smart 1987] and variations thereof have

Journal

ACM Letters on Programming Languages and Systems (LOPLAS)Association for Computing Machinery

Published: Mar 1, 1993

There are no references for this article.