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

文章基本信息

  • 标题:SEAN: Support Tool for Detecting Rule Violations in JNI Coding
  • 本地全文:下载
  • 作者:Haruna Nishiwaki ; Tomoharu Ugawa ; Seiji Umatani
  • 期刊名称:Information and Media Technologies
  • 电子版ISSN:1881-0896
  • 出版年度:2012
  • 卷号:7
  • 期号:4
  • 页码:1353-1358
  • DOI:10.11185/imt.7.1353
  • 出版社:Information and Media Technologies Editorial Board
  • 摘要:A static analysis tool has been developed for finding common mistakes in programs that use the Java Native Interface (JNI). Specific rules in JNI are not caught by C++ and other compilers, and this tool is aimed at rules about references to Java objects, which are passed to native methods as local references. Local references become invalid when the native method returns. To keep them valid after the return, the programmer should convert them into global references. If they are not converted, the garbage collector may malfunction and may, for example, fail to mark referenced objects. The developed static analysis tool finds assignments of local references to locations other than local variables such as global variables and structure fields. The tool was implemented as a plug-in for Clang, a compiler front-end for the LLVM. Application of this tool to native Android code demonstrated its effectiveness.
  • 关键词:program verification tool;escape analysis;JNI;Android;experience
国家哲学社会科学文献中心版权所有