JITAtlas: Checking Lifetime and Protection Obligations in Compiler Rewrites
Baihong Chen (Utah State University), Wen Li (Utah State University)
Key points
From the paper's conclusion- We present JITAtlas, a source-level checker that reconstructs reference and target computations from optimizer code and checks valid uses, continuous borrow support, and caller-visible ownership.
Abstract
Compiler rewrites can preserve returned values while violating object lifetime or ownership. Such failures arise when a rewrite changes when an object remains live, whether a borrowed pointer stays supported, or what ownership reaches the caller. We present JITAtlas, a source-level checker that reconstructs reference and target computations from optimizer code and checks valid uses, continuous borrow support, and caller-visible ownership. On a 58-input benchmark constructed and labeled independently of JITAtlas output, JITAtlas detects all 29 defects and reports none of 29 safe inputs; PyRefcon detects 20 defects and CpyChecker 18. Across three CPython snapshots, JITAtlas extracts 3,332 rewrite alternatives, retains 801 under recovered receiving contexts, and reports 194 violations. Manual review confirms 92 reports, giving 47.42% precision. End-to-end analysis takes 35.56-42.31 s per snapshot. JITAtlas further identifies 15 new bugs across five failure classes, each with a reproducible proof of concept.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- FrontierRefactor: Benchmarking Multi-Scale Performance-Oriented Codebase RefactoringarXiv · 2026
- ATLAS: A Multi-Agent Framework for Lifting Binary to Canonical Compiler IRarXiv · 2026
- TyPatch: Transforming Patches into Typestate Rules for Kernel Bug DetectionarXiv · 2026
- SafeJIT: A Speculating JIT Engine Verified Down to the Machine CodearXiv · 2026
- Efficient Program Reduction for Library Fuzzing HarnessesarXiv · 2026
- APG: Agentic Static-Analysis Infrastructure on LLVM-IR Graph DatabasesarXiv · 2026