ACM Home Page
Please provide us with feedback. Feedback
Reducing garbage in Java
Full text PdfPdf (289 KB)
Source ACM SIGPLAN Notices archive
Volume 33 ,  Issue 9  (September 1998) table of contents
Pages: 84 - 86  
Year of Publication: 1998
ISSN:0362-1340
Author
C. E. McDowell  Computer Science Dept, University of California Santa Cruz
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 2,   Downloads (12 Months): 16,   Citation Count: 4
Additional Information:

abstract   cited by   index terms   collaborative colleagues  

Tools and Actions: Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/290229.290239
What is a DOI?

ABSTRACT

One of the important advantages of Java, from a programmers prospective, is the use of garbage collection. One aspect of memory management in Java is that all objects are created on a garbage collected heap. Only primitive types, mostly numeric types and references to objects, are allocated on the runtime stack. We speculated that a significant number of objects behaved like traditional automatic variables, that are normally allocated on the runtime stack. We instrumented a Java virtual machine to test this hypothesis. The percentage of objects that could have been allocated on a stack instead of on the heap ranged from zero to possibly as high as 56%, but were generally in the 5--15% range.