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.2.1.5
URN: urn:nbn:de:0030-drops-61260
URL: http://dagstuhl.sunsite.rwth-aachen.de/volltexte/2016/6126/
Go back to Dagstuhl Artifacts Series


Jezek, Kamil ; Dietrich, Jens

Magic with Dynamo – Flexible Cross-Component Linking for Java with Invokedynamic (Artifact)

pdf-format:
DARTS-2-1-5.pdf (0.3 MB)


Abstract

Modern software systems are not built from scratch. They use functionality provided by libraries. These libraries evolve and often upgrades are deployed without the systems being recompiled.
In Java, this process is particularly error-prone due to the mismatch between source and binary compatibility, and the lack of API stability in many popular libraries. We propose a novel approach to mitigate this problem based on the use of invokedynamic instructions for cross-component method invocations. The dispatch mechanism of invokedynamic is used to provide on-the-fly signature adaptation. We show how this idea can be used to construct a Java compiler that produces more resilient bytecode. We present the dynamo compiler, a proof-of-concept implemented as javac post compiler, and evaluate our approach using several benchmark examples and two case studies showing how the use of the dynamo compiler can prevent certain types of linkage and stack overflow errors that have been observed in real-world systems.

BibTeX - Entry

@Article{jezek_et_al:DARTS:2016:6126,
  author =	{Kamil Jezek and Jens Dietrich},
  title =	{{Magic with Dynamo – Flexible Cross-Component Linking for Java with Invokedynamic (Artifact)}},
  pages =	{5:1--5:2},
  journal =	{Dagstuhl Artifacts Series},
  ISSN =	{2509-8195},
  year =	{2016},
  volume =	{2},
  number =	{1},
  publisher =	{Schloss Dagstuhl--Leibniz-Zentrum fuer Informatik},
  address =	{Dagstuhl, Germany},
  URL =		{http://drops.dagstuhl.de/opus/volltexte/2016/6126},
  URN =		{urn:nbn:de:0030-drops-61260},
  doi =		{10.4230/DARTS.2.1.5},
  annote =	{Keywords: Java, compilation, linking, binary compatibility, invokedynamic}
}

Keywords: Java, compilation, linking, binary compatibility, invokedynamic
Collection: DARTS, Volume 2, Issue 1
Related Scholarly Article: http://dx.doi.org/10.4230/LIPIcs.ECOOP.2016.12
Issue Date: 2016
Date of publication: 14.07.2016


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