Comparing Rapid Type Analysis with Points-To Analysis in GraalVM Native Image

08/31/2023
by   David Kozak, et al.
0

Whole-program analysis is an essential technique that enables advanced compiler optimizations. An important example of such a method is points-to analysis used by ahead-of-time (AOT) compilers to discover program elements (classes, methods, fields) used on at least one program path. GraalVM Native Image uses a points-to analysis to optimize Java applications, which is a time-consuming step of the build. We explore how much the analysis time can be improved by replacing the points-to analysis with a rapid type analysis (RTA), which computes reachable elements faster by allowing more imprecision. We propose several extensions of previous approaches to RTA: making it parallel, incremental, and supporting heap snapshotting. We present an extensive experimental evaluation of the effects of using RTA instead of points-to analysis, in which RTA allowed us to reduce the analysis time for Spring Petclinic, a popular demo application of the Spring framework, by 64 overall build time by 35 imprecision by 15

READ FULL TEXT
research
01/12/2023

Naturalistic Static Program Analysis

Static program analysis development is a non-trivial and time-consuming ...
research
09/02/2020

CcNav: Understanding Compiler Optimizations in Binary Code

Program developers spend significant time on optimizing and tuning progr...
research
12/19/2021

An Architecture for Exploiting Native User-Land Checkpoint-Restart to Improve Fuzzing

Fuzzing is one of the most popular and widely used techniques to find vu...
research
09/08/2017

Java Extensions for OMNeT++

On the one side, network simulation frameworks are important tools for r...
research
10/09/2020

Modular Collaborative Program Analysis in OPAL

Current approaches combining multiple static analyses deriving different...
research
07/11/2019

R Melts Brains -- An IR for First-Class Environments and Lazy Effectful Arguments

The R programming language combines a number of features considered hard...
research
07/28/2023

Error Localization for Sequential Effect Systems (Extended Version)

We describe a new concrete approach to giving predictable error location...

Please sign up or login with your details

Forgot password? Click here to reset