Breadcrumbs
Authors:
Open Access
- 5 June 2010
- journal article
- Published by Association for Computing Machinery (ACM) in ACM SIGPLAN Notices
- Vol. 45 (6) , 13-24
Abstract
Calling context--the set of active methods on the stack--is critical for understanding the dynamic behavior of large programs. Dynamic program analysis tools, however, are almost exclusively context insensitive because of the prohibitive cost of representing calling contexts at run time. Deployable dynamic analyses, in particular, have been limited to reporting only static program locations. This paper presents Breadcrumbs, an efficient technique for recording and reporting dynamic calling contexts. It builds on an existing technique for computing a compact (one word) encoding of each calling context that client analyses can use in place of a program location. The key feature of our system is a search algorithm that can reconstruct a calling context from its encoding using only a static call graph and a small amount of dynamic information collected at cold (infrequently executed) callsites. Breadcrumbs requires no offline training or program modifications, and handles all language features, including dynamic class loading. We use Breadcrumbs to add context sensitivity to two dynamic analyses: a data-race detector and an analysis for diagnosing null pointer exceptions. On average, it adds 10% to 20% runtime overhead, depending on a tunable parameter that controls how much dynamic information is collected. Collecting less information lowers the overhead, but can result in a search space explosion. In some cases this causes reconstruction to fail, but in most cases Breadcrumbs >produces non-trivial calling contexts that have the potential to significantly improve both the precision of the analyses and the quality of the bug reports.Keywords
This publication has 24 references indexed in Scilit:
- PACER2010
- How a Java VM can get more from a hardware performance monitor2009
- FastTrack2009
- Probabilistic calling context2007
- Tracking bad apples2007
- The DaCapo benchmarks2006
- Low-overhead call path profiling of unmodified, optimized code2005
- Low-overhead memory leak detection using adaptive statistical profiling2004
- Implementing jalapeño in Java1999
- Exploiting hardware performance counters with flow and context sensitive profiling1997