Garbage Collection is Fast, but a Stack is Faster,

Abstract

Prompted by claims that garbage collection can outperform stack allocation when sufficient physical memory is available, we present a careful analysis and set of cross-architecture measurements comparing these two approaches for the implementation of continuation (procedure call) frames. When the frames are allocated on a heap they require additional space, increase the amount of data transferred between memory and registers, and, on current architectures, require more instructions. We find that stack allocation of continuation frames outperforms heap allocation in some cases by almost a factor of three. Thus, stacks remain an important implementation technique for procedure calls, even in the presence of an efficient, compacting garbage collector and large amounts of memory. (AN)

Open PDF

Document Details

Document Type
Technical Report
Publication Date
Mar 01, 1994
Accession Number
ADA290099

Entities

People

  • Guillermo J. Rozas
  • James S. Miller

Organizations

  • Massachusetts Institute of Technology

Tags

Communities of Interest

  • Materials and Manufacturing Processes

DTIC Thesaurus Topics

  • Accumulators
  • Algorithms
  • Artificial Intelligence
  • Assembly
  • Assembly Languages
  • Compilers
  • Computer Architecture
  • Computer Language Translators
  • Computer Programs
  • Computers
  • Computing System Architectures
  • Information Systems
  • Instructions
  • Iterations
  • Language
  • Measurement
  • Operating Systems

Fields of Study

  • Computer science

Readers

  • Parallel and Distributed Computing.

Technology Areas

  • Space