Dynamic Data Structure Analysis for Java Programs
Sokhom Pheng, Clark Verbrugge · IEEE International Conference on Program Comprehension (ICPC) · 2006
Analysis of dynamic data structure usage is useful for both program understanding and for improving the accuracy of other program analyses. Static analysis techniques, however, suffer from reduced accuracy in complex situations, and do not necessarily give a clear picture of runtime heap activity. We have designed and implemented a dynamic heap analysis system that allows one to examine and analyze how Java programs build and modify data structures. Using a complete execution trace from a profiled run of the program, we build an internal representation that mirrors the evolving runtime data structures. The resulting series of representations can then be analyzed and visualized, and we show how to use our approach to help understand how programs use data structures, the precise effect of garbage collection, and to establish limits on static data structure analysis. A deep understanding of dynamic data structures is particularly important for modern, object-oriented languages that make extensive use of heapbased data structures.
Cited by 33 works. doi:10.1109/icpc.2006.20
Authors
References
- Java Virtual Machine Specification
- Parallelizing programs with recursive data structures
- Dynamically discovering likely program invariants to support program evolution
- Is it a tree, a DAG, or a cyclic graph? A shape analysis for heap-directed pointers in C
- TVLA: A System for Implementing Static Analyses
- Graph types
- Static verification of dynamically detected program invariants
- Dynamic metrics for java
- Visualizing Memory Graphs
- Region-based shape analysis with tracked locations