首页> 外文学位 >Inlining Java native calls at runtime.
【24h】

Inlining Java native calls at runtime.

机译:在运行时内联Java本机调用。

获取原文
获取原文并翻译 | 示例

摘要

Despite the overheads associated with the Java Native Interface (JNI), its opaque and binary-compatible nature make it the preferred interoperability mechanism for Java applications that use legacy, high-performance and architecture-dependent native code.; This thesis addresses the performance issues associated with the JNI by providing a strategy that transforms JNI callbacks into semantically equivalent but significantly cheaper operations at runtime. In order to do so, the strategy first inlines native functions into Java applications using a Just-in-time (JIT) compiler. Native function inlining is performed by leveraging the ability to store statically-generated intermediate language alongside native binaries. Once inlined, transformed native code can be further optimized due to the availability of runtime information to the JIT compiler.; Preliminary evaluations on a prototype implementation of our strategy show that it can substantially reduce the overhead of performing native calls and JNI callbacks, while preserving the opaque and binary-compatible characteristics of the JNI.
机译:尽管Java本机接口(JNI)带来了额外的开销,但其不透明和二进制兼容的特性使它成为使用遗留,高性能和与体系结构相关的本机代码的Java应用程序的首选互操作性机制。本文通过提供一种将JNI回调转换为语义等效但在运行时便宜得多的操作的策略,解决了与JNI相关的性能问题。为了做到这一点,该策略首先使用即时(JIT)编译器将本机函数内联到Java应用程序中。通过利用将静态生成的中间语言与本机二进制文件一起存储的功能来执行本机函数内联。一旦内联,由于JIT编译器可以获得运行时信息,因此可以进一步优化转换后的本机代码。对我们策略的原型实现的初步评估表明,它可以大大减少执行本机调用和JNI回调的开销,同时保留JNI的不透明和二进制兼容特性。

著录项

  • 作者

    Stepanian, Levon S.;

  • 作者单位

    University of Toronto (Canada).;

  • 授予单位 University of Toronto (Canada).;
  • 学科 Computer Science.
  • 学位 M.Sc.
  • 年度 2005
  • 页码 80 p.
  • 总页数 80
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类 自动化技术、计算机技术;
  • 关键词

相似文献

  • 外文文献
  • 中文文献
  • 专利