Digitala Vetenskapliga Arkivet

Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Garbage Collector-Agnostic Barriers for Ahead-of-Time Compilation
Uppsala University, Disciplinary Domain of Science and Technology, Mathematics and Computer Science, Department of Information Technology.
2025 (English)Independent thesis Advanced level (degree of Master (Two Years)), 30 credits / 45 HE creditsStudent thesis
Abstract [en]

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.

Place, publisher, year, edition, pages
2025. , p. 52
Series
IT ; mDV 25 030
National Category
Computer and Information Sciences
Identifiers
URN: urn:nbn:se:uu:diva-565630OAI: oai:DiVA.org:uu-565630DiVA, id: diva2:1991503
External cooperation
Oracle
Educational program
Master Programme in Computer Science
Supervisors
Examiners
Available from: 2025-08-25 Created: 2025-08-23 Last updated: 2025-08-25Bibliographically approved

Open Access in DiVA

fulltext(970 kB)306 downloads
File information
File name FULLTEXT01.pdfFile size 970 kBChecksum SHA-512
52d219b9e0f36e7d2d5eaa1c0369bd373bfab83b883b91458457228ffb0c907644b64ad27e5a23cce4f55b562062280f94ac4af9a70ffcbfaac3d447f2cecb41
Type fulltextMimetype application/pdf

By organisation
Department of Information Technology
Computer and Information Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 309 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 1250 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf