Skip to main navigation Skip to search Skip to main content

Live heap space analysis for languages with garbage collection

  • Elvira Albert
  • , Samir Genaim
  • , Miguel Gómez-Zamalloa

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

35 Scopus citations

Abstract

The peak heap consumption of a program is the maximum size of the live data on the heap during the execution of the program, i.e., the minimum amount of heap space needed to run the program without exhausting the memory. It is well-known that garbage collection (GC) makes the problem of predicting the memory required to run a program difficult. This paper presents, the best of our knowledge, the first live heap space analysis for garbage-collected languages which infers accurate upper bounds on the peak heap usage of a program's execution that are not restricted to any complexity class, i.e., we can infer exponential, logarithmic, polynomial, etc., bounds. Our analysis is developed for an (sequential) object-oriented bytecode language with a scoped-memory manager that reclaims unreachable memory when methods return. We also show how our analysis can accommodate other GC schemes which are closer to the ideal GC which collects objects as soon as they become unreachable. The practicality of our approach is experimentally evaluated on a prototype implementation.We demonstrate that it is fully automatic, reasonably accurate and efficient by inferring live heap space bounds for a standardized set of benchmarks, the JOlden suite.

Original languageEnglish
Title of host publicationISMM'09 - Proceedings of the 2009 ACM SIGPLAN International Symposium on Memory Management
Pages129-138
Number of pages10
DOIs
StatePublished - 30 Nov 2009
Externally publishedYes
Event2009 ACM SIGPLAN International Symposium on Memory Management, ISMM'09 - Dublin, Ireland
Duration: 19 Jun 200920 Jun 2009

Publication series

NameInternational Symposium on Memory Management, ISMM

Conference

Conference2009 ACM SIGPLAN International Symposium on Memory Management, ISMM'09
Country/TerritoryIreland
CityDublin
Period19/06/0920/06/09

Keywords

  • Java Bytecode
  • Live Heap Space Analysis
  • Low-level Languages
  • Peak Memory Consumption

ASJC Scopus subject areas

  • Hardware and Architecture
  • Software

Fingerprint

Dive into the research topics of 'Live heap space analysis for languages with garbage collection'. Together they form a unique fingerprint.

Cite this