DocumentCode
2205258
Title
Explicit reference counts
Author
Martin, Johannes J.
Author_Institution
Dept. of Comput. Sci., New Orleans Univ., LA, USA
fYear
1996
fDate
11-14 Apr 1996
Firstpage
707
Lastpage
710
Abstract
The paper advocates the routine use of explicit reference counts to manage storage in imperative language programs. While the principle of the method is not new-most text books on data structures describe it, albeit tersely-commercial software regularly uses ad hoc approaches to storage management; therefore an in-depth account of this effective and systematic method is indicated. The object to be managed are assumed to be instances of abstract data types or of object classes defined by modules. It is proposed to equip these objects with reference counts and the operations KEEP (increase reference count) and RELEASE (decrease reference count and, on zero, free the object). In class libraries these operations should be incorporated into the root classes and thus inherited by all classes. The method reference counts has the following merits: all deallocation decisions are based on considerations local to some module. Copying of data structures for simplifying deallocation decisions is avoided. The rules for using KEEP and RELEASE are simple and systematic. KEEP and RELEASE are used only to establish or revoke long-term claims to objects. The method is uniformly applicable to all types of objects (except recursive lists), mutable and immutable
Keywords
abstract data types; data structures; libraries; software libraries; storage management; KEEP operation; RELEASE operation; abstract data types; class libraries; commercial software; data structure copying; data structures; deallocation decisions; explicit reference counts; imperative language programs; modules; object classes; root classes; storage management; Books; Computer languages; Computer science; Data structures; Dynamic programming; Lakes; Libraries; Memory management; Programming profession; Storage automation;
fLanguage
English
Publisher
ieee
Conference_Titel
Southeastcon '96. Bringing Together Education, Science and Technology., Proceedings of the IEEE
Conference_Location
Tampa, FL
Print_ISBN
0-7803-3088-9
Type
conf
DOI
10.1109/SECON.1996.510164
Filename
510164
Link To Document