基于模板提取的 Java JIT 测试
Java JIT Testing with Template Extraction
AI总结:
本文提出基于模板的 Java JIT 编译器测试框架 LeJit,可从现有 Java 代码自动提取可执行模板并生成测试程序,实验在 HotSpot、OpenJ9 和 GraalVM 中发现多个已确认缺陷。
摘要:
我们提出了 LeJit,这是一个用于测试 Java 即时(JIT)编译器的基于模板的框架。与近期的基于模板的框架类似,LeJit 执行模板——一种带有待填充空洞的程序——以生成具体程序,作为 Java JIT 编译器的输入。LeJit 通过将表达式转换为空洞,从现有 Java 代码自动生成模板程序,同时生成必要的粘合代码(即生成非基本类型实例的代码),使生成的模板可执行。我们已成功使用 LeJit 测试了一系列流行的 Java JIT 编译器,在 HotSpot 中发现了 5 个 bug,在 OpenJ9 中发现了 9 个 bug,在 GraalVM 中发现了 1 个 bug。所有这些 bug 均已得到 Oracle 和 IBM 开发者的确认,其中 11 个此前未知,包括两个 CVE(Common Vulnerabilities and Exposures,通用漏洞披露)。我们与若干现有方法的比较表明,LeJit 与它们互补,并且是确保 Java JIT 编译器正确性的一种强大技术。
英文摘要:
We present LeJit, a template-based framework for testing Java just-in-time (JIT) compilers. Like recent template-based frameworks, LeJit executes a template -- a program with holes to be filled -- to generate concrete programs given as inputs to Java JIT compilers. LeJit automatically generates template programs from existing Java code by converting expressions to holes, as well as generating necessary glue code (i.e., code that generates instances of non-primitive types) to make generated templates executable. We have successfully used LeJit to test a range of popular Java JIT compilers, revealing five bugs in HotSpot, nine bugs in OpenJ9, and one bug in GraalVM. All of these bugs have been confirmed by Oracle and IBM developers, and 11 of these bugs were previously unknown, including two CVEs (Common Vulnerabilities and Exposures). Our comparison with several existing approaches shows that LeJit is complementary to them and is a powerful technique for ensuring Java JIT compiler correctness.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。