SEAN: Support Tool for Detecting Rule Violations in JNI Coding
スポンサーリンク
概要
- 論文の詳細を見る
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.
著者
-
Nishiwaki Haruna
Graduate School of Informatics, Kyoto University
-
Yasugi Masahiro
Department of Artificial Intelligence, Kyushu Institute of Technology
-
UGAWA TOMOHARU
Graduate School of Informatics and Engineering, The University of Electro-Communications
-
UMATANI SEIJI
Graduate School of Informatics, Kyoto University
-
Yuasa Taiichi
Graduate School of Informatics, Kyoto University
関連論文
- A Transformation-Based Implementation of Lightweight Nested Functions
- Efficient and Portable Implementation of Java-style Exception Handling in C
- Parallel Graph Traversals using Work-Stealing Frameworks for Many-core Platforms
- Parallel Graph Traversals using Work-Stealing Frameworks for Many-core Platforms
- SEAN: Support Tool for Detecting Rule Violations in JNI Coding
- A Transformation-Based Implementation of Lightweight Nested Functions
- A Transformation-Based Implementation of Lightweight Nested Functions
- SEAN: Support Tool for Detecting Rule Violations in JNI Coding
- Efficient and Portable Implementation of Java-style Exception Handling in C
- Efficient and Portable Implementation of Java-style Exception Handling in C