Skip to main content
QUICK REVIEW

[Paper Review] Understanding and Finding JIT Compiler Performance Bugs

Zijian Yi, Cheng Ding|arXiv (Cornell University)|Mar 6, 2026
Software System Performance and ReliabilityComputer Science0 citations
TL;DR

The paper empirically studies JIT compiler performance bugs across four engines, proposes Jittery for layered differential performance testing, and reports 12 new bugs (11 confirmed, 6 fixed) found using the tool.

ABSTRACT

Just-in-time (JIT) compilers are key components for many popular programming languages with managed runtimes (e.g., Java and JavaScript). JIT compilers perform optimizations and generate native code at runtime based on dynamic profiling data, to improve the execution performance of the running application. Like other software systems, JIT compilers might have software bugs, and prior work has developed a number of automated techniques for detecting functional bugs (i.e., generated native code does not semantically match that of the original code). However, no prior work has targeted JIT compiler performance bugs, which can cause significant performance degradation while an application is running. These performance bugs are challenging to detect due to the complexity and dynamic nature of JIT compilers. In this paper, we present the first work on demystifying JIT performance bugs. First, we perform an empirical study across four popular JIT compilers for Java and JavaScript. Our manual analysis of 191 bug reports uncovers common triggers of performance bugs, patterns in which these bugs manifest, and their root causes. Second, informed by these insights, we propose layered differential performance testing, a lightweight technique to automatically detect JIT compiler performance bugs, and implement it in a tool called Jittery. We incorporate practical optimizations into Jittery such as test prioritization, which reduces testing time by 92.40% without compromising bug-detection capability, and automatic filtering of false-positives and duplicates, which substantially reduces manual inspection effort. Using Jittery, we discovered 12 previously unknown performance bugs in the Oracle HotSpot and Graal JIT compilers, with 11 confirmed and 6 fixed by developers.

Motivation & Objective

  • Assess real-world JIT compiler performance bugs across major engines (HotSpot, Graal, V8, SpiderMonkey).
  • Characterize triggers, symptoms, and root causes to guide testing and debugging.
  • Develop and evaluate a lightweight detection tool (Jittery) based on layered differential testing.
  • Provide a publicly available dataset of JIT performance bugs to aid future research.

Proposed method

  • Conduct a manual, in-depth analysis of 191 bug reports from four JIT engines (HotSpot, Graal, V8, SpiderMonkey).
  • Identify common triggers, patterns, and root causes of performance bugs.
  • Design and implement Jittery, a layered differential performance testing tool that compares two JIT configurations over many small programs.
  • Incorporate optimizations like test prioritization and pruning to reduce testing time and false positives.
  • Evaluate Jittery by running it on real engines, discovering previously unknown bugs (12 total; 11 confirmed; 6 fixed).
  • Release dataset and scripts publicly at the project repository.

Experimental results

Research questions

  • RQ1RQ1: What input artifacts trigger JIT performance bugs?
  • RQ2RQ2: What are the common symptoms of JIT performance bugs?
  • RQ3RQ3: What are the common root causes of JIT performance bugs?

Key findings

  • Nearly half of bugs can be exposed by small micro-benchmarks rather than full benchmarks.
  • Bugs are often detected via comparative signals such as performance regressions or differences across equivalent executions.
  • JIT-specific features (e.g., speculation and runtime interaction) are significant sources of bugs beyond traditional optimization issues.
  • Jittery reduces testing time by 92.40% through layered testing and prioritization without sacrificing bug detection.
  • Using Jittery, the authors discovered 12 previously unknown performance bugs in Oracle HotSpot and Graal JIT compilers; 11 were confirmed and 6 were fixed by developers.
  • The study provides a public dataset of JIT performance bugs for future research.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.