2005 · 34 citations · 16 references
ComputingComputer EngineeringComputer ScienceCompilersOperating SystemsProgramming LanguagesAbstract Syntax TreesApplication Programming InterfacesControl-flow AnalysisData-flow AnalysisKernel ProgrammingSystem CallsCallback TechniqueFunction InliningInliningJava Native InterfaceNative Code AnalysisPortabilityPortability MechanismsRuntime Specialization
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 us-ing a Just-in-time (JIT) compiler. Native function inlining is performed by leveraging the abil-ity 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 sub-stantially reduce the overhead of performing native calls and JNI callbacks, while preserving the opaque and binary-compatible characteristics of the JNI. ii
16
Implementing remote procedure calls
Andrew Birrell, Bruce Jay Nelson · ACM Transactions on Computer Systems · 1984 · 1.8K citations · Full text
Journal of Education · 1915 · 626 citations
Michael Franz, Thomas Kistler · Communications of the ACM · 1997 · 159 citations · Full text
Marmot: an optimizing compiler for Java
Robert Fitzgerald, Todd B. Knoblock, Erik Ruf et al. · Software Practice and Experience · 2000 · 141 citations
Typing a multi-language intermediate code
Andrew D. Gordon, Don Syme · 2001 · 83 citations