首页> 外文期刊>Mathematical structures in computer science >JNI light: an operational model for the core JNI
【24h】

JNI light: an operational model for the core JNI

机译:JNI light:核心JNI的运营模型

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

摘要

Through foreign function interfaces (FFIs), software components in different programmingrnlanguages interact with each other in the same address space. Recent years have witnessed arnnumber of systems that analyse FFIs for safety and reliability. However, lack of formalrnspecifications of FFIs hampers progress in this endeavour. We present a formal operationalrnmodel, Java Native Interface (JNI) light (JNIL), for a subset of a widely used FFI – thernJava Native Interface (JNI). JNIL focuses on the core issues when a high-levelrngarbage-collected language interacts with a low-level language. It proposes abstractions forrnhandling a shared heap, cross-language method calls, cross-language exception handling,rnand garbage collection. JNIL can directly serve as a formal basis for JNI tools and systems.rnWe demonstrate its utility by proving soundness of a system that checks native code in JNIrnprograms for type-unsafe use of JNI functions. The abstractions in JNIL are also usefulrnwhen modelling other FFIs, such as the Python/C interface and the OCaml/C interface.
机译:通过外部功能接口(FFI),不同编程语言的软件组件在同一地址空间中相互交互。近年来,目睹了许多分析FFI的安全性和可靠性的系统。但是,缺乏正式的外国金融机构规范阻碍了这一努力的进展。我们为正式使用的FFI子集-Java本机接口(JNI)提出了一个正式的操作模型,即Java本机接口(JNI)light(JNIL)。当高级垃圾收集语言与低级语言交互时,JNIL专注于核心问题。它提出了抽象概念,用于处理共享堆,跨语言方法调用,跨语言异常处理,垃圾收集。 JNIL可以直接用作JNI工具和系统的正式基础。我们通过证明系统的可靠性来证明其实用性,该系统检查JNIrnprograms中的本机代码是否存在类型不安全的JNI函数使用。在对其他FFI(例如Python / C接口和OCaml / C接口)进行建模时,JNIL中的抽象也很有用。

著录项

  • 来源
    《Mathematical structures in computer science》 |2015年第4期|805-840|共36页
  • 作者

    GANG TAN;

  • 作者单位

    Department of Computer Science and Engineering, Lehigh University, Bethlehem, Pennsylvania,U.S.A.;

  • 收录信息
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号