Header menu link for other important links
X
Pye: A framework for preciSE-yet-efficient just-in-time analyses for Java programs
Manas Thakur,
Published in Association for Computing Machinery
2019
Volume: 41
   
Issue: 3
Abstract
Languages like Java and C# follow a two-step process of compilation: static compilation and just-in-time (JIT) compilation. As the time spent in JIT compilation gets added to the execution-time of the application, JIT compilers typically sacrifice the precision of program analyses for efficiency. The alternative of performing the analysis for the whole program statically ignores the analysis of libraries (available only at runtime), and thereby generates imprecise results. To address these issues, in this article, we propose a two-step (static+JIT) analysis framework called precise-yet-efficient (PYE) that helps generate precise analysis-results at runtime at a very low cost. PYE achieves the twin objectives of precision and performance during JIT compilation by using a two-pronged approach: (i) It performs expensive analyses during static compilation, while accounting for the unavailability of the runtime libraries by generating partial results, in terms of conditional values, for the input application. (ii) During JIT compilation, PYE resolves the conditions associated with these values, using the pre-computed conditional values for the libraries, to generate the final results. We have implemented the static and the runtime components of PYE in the Soot optimization framework and the OpenJDK HotSpot Server Compiler (C2), respectively. We demonstrate the usability of PYE by instantiating it to perform two context-, flow-, and field-sensitive heap-based analyses: (i) points-to analysis for null-dereference-check elimination; and (ii) escape analysis for synchronization elimination. We evaluate these instantiations against their corresponding state-of-the-art implementations in C2 over a wide range of benchmarks. The extensive evaluation results show that our strategy works quite well and fulfills both the promises it makes: enhanced precision while maintaining efficiency during JIT compilation. © 2019 Association for Computing Machinery.
About the journal
JournalData powered by TypesetACM Transactions on Programming Languages and Systems
PublisherData powered by TypesetAssociation for Computing Machinery
ISSN01640925
Open AccessYes
Concepts (15)
  •  related image
    Application programs
  •  related image
    Efficiency
  •  related image
    JUST IN TIME PRODUCTION
  •  related image
    Libraries
  •  related image
    Petroleum reservoir evaluation
  •  related image
    Program compilers
  •  related image
    ANALYSIS FRAMEWORKS
  •  related image
    Corresponding state
  •  related image
    Java program
  •  related image
    JUST-IN-TIME COMPILATION
  •  related image
    Optimization framework
  •  related image
    PRECISE
  •  related image
    Program analysis
  •  related image
    SYNCHRONIZATION ELIMINATION
  •  related image
    Java programming language