Back to overview

Accurate reification of complete supertype information for dynamic analysis on the JVM

Type of publication Peer-reviewed
Publikationsform Original article (peer-reviewed)
Author Rosà Andrea, Rosales Eduardo, Binder Walter,
Project Fundamentals of Parallel Programming for Platform-as-a-Service Clouds
Show all

Original article (peer-reviewed)

Journal ACM SIGPLAN Notices
Volume (Issue) 52(12)
Page(s) 104 - 116
Title of proceedings ACM SIGPLAN Notices
DOI 10.1145/3170492.3136061


Reflective supertype information (RSI) is useful for many instrumentation-based dynamic analyses on the Java Virtual Machine (JVM). On the one hand, while such information can be obtained when performing the instrumentation within the same JVM process executing the instrumented program, in-process instrumentation severely limits the code coverage of the analysis. On the other hand, performing the instrumentation in a separate process can achieve full code coverage, but complete RSI is generally not available, often requiring expensive runtime checks in the instrumented program. Providing accurate and complete RSI in the instrumentation process is challenging because of dynamic class loading and classloader namespaces. In this paper, we present a novel technique to accurately reify complete RSI in a separate instrumentation process. We implement our technique in the dynamic analysis framework DiSL and evaluate it on a task profiler, achieving speedups of up to 45% for an analysis with full code coverage.