An Opinionated Overview on Static Analysis for Java #JVMLS

preview_player
Показать описание
Presented by *Christian Wimmer* - GraalVM Native Image Architect (Oracle Labs) during the *JVM* *Language* *Summit* (August 2024 - Santa Clara, CA).

_Whole-program points-to analysis has many diverse usages, for example, call graph construction, security analysis, auto-parallelization, bug analysis, heap allocation analysis, and program debugging and understanding. As a result, many different flavors of analysis have been proposed: an analysis can be sound or unsound; context insensitive or context sensitive; flow sensitive; path sensitive; memory sensitive. We start with an overview of academic research that explains all the terms. Then we make the claim that static analysis for Java is actually much harder than it looks at the first: Reflection, JNI, Unsafe memory access, method handles, VarHandle, bootstrap methods, ... are all concepts in Java that are overlooked in many of the academic research papers. While that is acceptable for some use cases of static analysis, most real-world use cases cannot ignore it. We show how all of these dynamic features can be handled without sacrificing the precision of the analysis in the static analysis framework that we developed as part of GraalVM Native Image. The presentation will be quite example-driven: we will illustrate where a points-to analysis can successfully prove important whole-program properties that are useful for optimizations and security analysis. But we will also show examples where a points-to analysis fails to prove facts that look trivial for humans._

*Resources*

*Tags* #Java #OpenJDK
Рекомендации по теме
Комментарии
Автор

Incredible what they have been able to achieve. There's so much late binding going on at the bytecode level that getting solid guarantees really does require context sensitivity, and in years past, we would have thought of any context sensitivity as too expensive to use in a compiler.
I should really play with jChord again, that was a lot of fun.

capability-snob
Автор

Is there an entry point how to use the analysis of Graal stand-alone? What package is it

berndeckenfels
Автор

So when does null safety come? Should be a good candidate for static analysis.

pompiuses
join shbcf.ru