Content area

Abstract

The Java programming language utilizes automatic memory management in the form of garbage collection. The Java Virtual Machine includes many different garbage collector implementations to accommodate different platform and performance requirements. Garbage collectors use a mechanism known as a barrier to synchronize memory accesses of allocated objects. The Java Virtual Machine also performs optimizations during the execution of programs by compiling hot code paths into machine instructions through just-in-time compilation. However, this process creates a noticeable warm-up overhead. To remedy this, much work has been done to compile programs ahead-of-time instead. However, it is unclear what code should be generated for the garbage collector barriers at compile time as the garbage collector is not selected until runtime.

This thesis designs and implements a garbage collector-agnostic write barrier that can be compiled ahead-of-time for the G1, ZGC, Serial, and Parallel garbage collectors for the Java Virtual Machine.

Statistical evaluation of the proposed implementation exhibits minor performance regressions in multiple metrics, such as throughput and p90 latency, across a variety of benchmarks. Analysis also revealed a moderate increase in generated code size.

The results of this work indicate that GC-agnostic write barriers can be implemented in the HotSpot JVM with minimal performance impact in most scenarios, enabling the Java Virtual Machine to move towards ahead-of-time compilation in the future.

Details

1010268
Business indexing term
Classification
Title
Garbage Collector-Agnostic Barriers for Ahead-Of-Time Compilation
Number of pages
64
Publication year
2025
Degree date
2025
School code
0903
Source
MAI 87/3(E), Masters Abstracts International
University/institution
Uppsala Universitet (Sweden)
University location
Sweden
Degree
M.C.S.
Source type
Dissertation or Thesis
Language
English
Document type
Dissertation/Thesis
Dissertation/thesis number
32277085
ProQuest document ID
3245721928
Document URL
https://www.proquest.com/dissertations-theses/garbage-collector-agnostic-barriers-ahead-time/docview/3245721928/se-2?accountid=208611
Copyright
Database copyright ProQuest LLC; ProQuest does not claim copyright in the individual underlying works.
Database
ProQuest One Academic