Skip to main navigation Skip to search Skip to main content

Evaluating HTM for Pauseless Garbage Collectors in Java

  • Maria Carpen-Amarie
  • , Dave Dice
  • , Patrick Marlier
  • , Gael Thomas
  • , Pascal Felber

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

Abstract

While garbage collectors (GCs) significantly simplify programmers' tasks by transparently handling memory management, they also introduce various overheads and sources of unpredictability. Most importantly, GCs typically block the application while reclaiming free memory, which makes them unfit for environments where responsiveness is crucial, such as realtime systems. There have been several approaches for developing concurrent GCs that can exploit the processing capabilities of multi-core architectures, but at the expense of a synchronization overhead between the application and the collector. In this paper, we investigate a novel approach to implementing pauseless moving garbage collection using hardware transactional memory (HTM). We describe the design of a moving GC algorithm that can operate concurrently with the application threads. We study the overheads resulting from using transactional barriers in the Java virtual machine (JVM) and discuss various optimizations. Our findings show that, while the cost of these barriers can be minimized by carefully restricting them to volatile accesses when executing within the interpreter, the actual performance degradation becomes unacceptably high with the just-in-time compiler. The results tend to indicate that current publicly available HTM mechanisms (such as Intel Haswell) cannot be readily used to implement a pauseless GC in Java that can compete with state-of-the-art concurrent GCs.

Original languageEnglish
Title of host publicationProceedings - 13th IEEE International Symposium on Parallel and Distributed Processing with Applications, ISPA 2015
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages1-8
Number of pages8
ISBN (Electronic)9781467379519
DOIs
Publication statusPublished - 2 Dec 2015
Event14th IEEE International Conference on Trust, Security and Privacy in Computing and Communications, TrustCom 2015 - Helsinki, Finland
Duration: 20 Aug 201522 Aug 2015

Publication series

NameProceedings - 14th IEEE International Conference on Trust, Security and Privacy in Computing and Communications, TrustCom 2015
Volume3

Conference

Conference14th IEEE International Conference on Trust, Security and Privacy in Computing and Communications, TrustCom 2015
Country/TerritoryFinland
CityHelsinki
Period20/08/1522/08/15

Keywords

  • Garbage Collection
  • Hardware Transactional Memory
  • Java Virtual Machine

Fingerprint

Dive into the research topics of 'Evaluating HTM for Pauseless Garbage Collectors in Java'. Together they form a unique fingerprint.

Cite this