2018 · 24 citations · 22 references
ComputingComputer ScienceOperating SystemsProgramming LanguagesSoftware EngineeringApplication Programming InterfacesControl-flow AnalysisData-flow AnalysisStatic AnalysisStatic Code AnalysisApi Call AnalysisDynamic Code AnalysisDynamic Code GenerationDynamic Program AnalysisRule-based Static Analysis
The dynamic proxy API is one of Java’s most widely-used dynamic features, permitting principled run-time code generation and link- ing. Dynamic proxies can implement any set of interfaces and for- ward method calls to a special object that handles them reflectively. The flexibility of dynamic proxies, however, comes at the cost of having a dynamically generated layer of bytecode that cannot be penetrated by current static analyses. In this paper, we observe that the dynamic proxy API is stylized enough to permit static analysis. We show how the semantics of dynamic proxies can be modeled in a straightforward manner as logical rules in the Doop static analysis framework. This concise set of rules enables Doop’s standard analyses to process code behind dynamic proxies. We evaluate our approach by analyzing XCorpus, a corpus of real-world Java programs: we fully handle 95% of its reported proxy creation sites. Our handling results in the analysis of significant portions of previously unreachable or incompletely- modeled code.
22
Effective static race detection for Java
Mayur Naik, Alex Aiken, John Whaley · 2006 · 426 citations · Full text
Effective static race detection for Java
Mayur Naik, Alex Aiken, John Whaley · ACM SIGPLAN Notices · 2006 · 417 citations · Full text