首页    期刊浏览 2024年09月19日 星期四
登录注册

文章基本信息

  • 标题:Magic with Dynamo -- Flexible Cross-Component Linking for Java with Invokedynamic
  • 本地全文:下载
  • 作者:Kamil Jezek ; Jens Dietrich
  • 期刊名称:LIPIcs : Leibniz International Proceedings in Informatics
  • 电子版ISSN:1868-8969
  • 出版年度:2016
  • 卷号:56
  • 页码:12:1-12:25
  • DOI:10.4230/LIPIcs.ECOOP.2016.12
  • 出版社:Schloss Dagstuhl -- Leibniz-Zentrum fuer Informatik
  • 摘要: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 a javac post compiler. We evaluate our approach using several benchmark examples and two case studies showing how the dynamo compiler can prevent certain types of linkage and stack overflow errors that have been observed in real-world systems.
  • 关键词:Java; compilation; linking; binary compatibility; invokedynamic
国家哲学社会科学文献中心版权所有