Data structure aware garbage collector

Nachshon Cohen, Erez Petrank

Research output: Contribution to journalArticlepeer-review

Abstract

Garbage collection may benefit greatly from knowledge about program behavior, but most managed languages do not provide means for the programmer to deliver such knowledge. In this work we propose a very simple interface that requires minor programmer effort and achieves substantial performance and scalability improvements. In particular, we focus on the common use of data structures or collections for organizing data on the heap. We let the program notify the collector which classes represent nodes of data structures and also when such nodes are being removed from their data structures. The data-structure aware (DSA) garbage collector uses this information to improve performance, locality, and load balancing. Experience shows that this interface requires a minor modification of the application. Measurements show that for some significant benchmarks this interface can dramatically reduce the time spent on garbage collection and also improve the overall program performance.

Original languageEnglish
Pages (from-to)28-40
Number of pages13
JournalACM SIGPLAN Notices
Volume50
Issue number11
DOIs
StatePublished - 14 Jun 2015

Keywords

  • Collections
  • Data structures
  • Memory management
  • Memory management interface
  • Parallel garbage collection

All Science Journal Classification (ASJC) codes

  • General Computer Science

Fingerprint

Dive into the research topics of 'Data structure aware garbage collector'. Together they form a unique fingerprint.

Cite this