Please use this identifier to cite or link to this item: https://research.matf.bg.ac.rs/handle/123456789/3158
Title: Comparative Analysis and Evaluation of Method Layout Algorithms
Authors: Joksimović, Miloje 
Spasić, Marko 
Vujošević Janičić, Milena 
Affiliations: Informatics and Computer Science 
Informatics and Computer Science 
Keywords: GraalVM;profile-guided optimization;Java;method layout;performance optimization
Issue Date: 2025
Rank: M64
Publisher: Beograd : Matematički fakultet
Related Publication(s): XV Simpozijum "Matematika i primene" : Knjiga apstrakata
Conference: Simpozijum "Matematika i primene" (15 ; 2025 ; Beograd)
Abstract: 
GraalVM [1, 2] is a high-performance runtime that supports ahead-of-time (AOT) compilation through its Native Image technology, enabling Java applications to be transformed into compact, standalone executables with fast startup and reduced memory usage [3]. As part of the AOT pipeline, the compiler determines the layout of methods inside the final executable. The order in which methods are placed in the .text section affects spatial locality and consequently impacts memory footprint, TLB
efficiency, and the frequency of page faults. Modern compilers employ heuristics and profile-guided optimizations (PGO) to arrange methods in a way that improves locality and overall execution efficiency,
making method layout an important factor in runtime performance, especially for memory-constrained or
latency-sensitive workloads.
This work analyzes, compares, and extends several method layout algorithms implemented in the GraalVM Native Image compiler. We evaluate heuristic-based, profile-driven, and randomized approaches across a representative benchmark suite and investigate their impact on memory footprint and startup performance [4]. To enable fine-grained evaluation, we introduce extended measurement support that reports memory usage of the .text section [4]. The results highlight the performance sensitivity to method ordering and provide a deeper understanding of how code layout influences native executable characteristics. The contributions include a clarified and simplified view of existing layout strategies, new measurement
capabilities, and a comprehensive comparison that lays the groundwork for further research on code layout
optimization in AOT compilers.
URI: https://research.matf.bg.ac.rs/handle/123456789/3158
Appears in Collections:Research outputs

Show full item record

Google ScholarTM

Check


Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.