License: Creative Commons Attribution 3.0 Germany license (CC BY 3.0 DE)
When quoting this document, please refer to the following
DOI: 10.4230/DARTS.5.2.6
URN: urn:nbn:de:0030-drops-107835
URL: http://dagstuhl.sunsite.rwth-aachen.de/volltexte/2019/10783/
Go back to Dagstuhl Artifacts Series


Fourtounis, George ; Smaragdakis, Yannis

Deep Static Modeling of invokedynamic (Artifact)

pdf-format:
DARTS-5-2-6.pdf (0.4 MB)


Abstract

Java 7 introduced programmable dynamic linking in the form of the invokedynamic framework. Static analysis of code containing programmable dynamic linking has often been cited as a significant source of unsoundness in the analysis of Java programs. For example, Java lambdas, introduced in Java 8, are a very popular feature, which is, however, resistant to static analysis, since it mixes invokedynamic with dynamic code generation. These techniques invalidate static analysis assumptions: programmable linking breaks reasoning about method resolution while dynamically generated code is, by definition, not available statically. In this paper, we show that a static analysis can predictively model uses of invokedynamic while also cooperating with extra rules to handle the runtime code generation of lambdas. Our approach plugs into an existing static analysis and helps eliminate all unsoundness in the handling of lambdas (including associated features such as method references) and generic invokedynamic uses. We evaluate our technique on a benchmark suite of our own and on third-party benchmarks, uncovering all code previously unreachable due to unsoundness, highly efficiently.

BibTeX - Entry

@Article{fourtounis_et_al:DARTS:2019:10783,
  author =	{George Fourtounis and Yannis Smaragdakis},
  title =	{{Deep Static Modeling of invokedynamic (Artifact)}},
  pages =	{6:1--6:4},
  journal =	{Dagstuhl Artifacts Series},
  ISSN =	{2509-8195},
  year =	{2019},
  volume =	{5},
  number =	{2},
  publisher =	{Schloss Dagstuhl--Leibniz-Zentrum fuer Informatik},
  address =	{Dagstuhl, Germany},
  URL =		{http://drops.dagstuhl.de/opus/volltexte/2019/10783},
  doi =		{10.4230/DARTS.5.2.6},
  annote =	{Keywords: invokedynamic, lambdas, static analysis}
}

Keywords: invokedynamic, lambdas, static analysis
Collection: Special Issue of the 33rd European Conference on Object-Oriented Programming (ECOOP 2019)
Related Scholarly Article: https://dx.doi.org/10.4230/LIPIcs.ECOOP.2019.15
Issue Date: 2019
Date of publication: 12.07.2019


DROPS-Home | Fulltext Search | Imprint | Privacy Published by LZI