Repository logo
Log in(current)
Repository logoMIT Open ScholarshipDSpace@MIT
  1. Home
  2. Computer Science and Artificial Intelligence Lab (CSAIL)
  3. Artificial Intelligence Lab Publications
  4. AI Memos (1959 - 2004)
  5. Garbage Collection is Fast, But a Stack is Faster

Garbage Collection is Fast, But a Stack is Faster

Thumbnail Image
Download
Name

AIM-1462.pdf

Size

380.17 KB

Format

Adobe PDF

Checksum (MD5)

1a6032897ad2fd3a12c15b474688e8dc

Thumbnail Image
Download
Name

AIM-1462.ps.Z

Size

91.84 KB

Format

Unknown

Checksum (MD5)

35d807d2492f0639261438c4892d7ebc

Author(s)
Miller, James S.
•
Rozas, Guillermo J.
Date Issued
March 1, 1994
Series/Report no.
AIM-1462
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.
Persistent DSpace Link
http://hdl.handle.net/1721.1/6622
Repository logo
PrivacyPermissionsAccessibilityContact us
Repository logo
Notify us about copyright concerns.