作者
William N Sumner, Yunhui Zheng, Dasarath Weeratunge, Xiangyu Zhang
发表日期
2010/5/1
研讨会论文
Proceedings of the 32nd ACM/IEEE International Conference on Software Engineering-Volume 1
页码范围
525-534
出版商
ACM
简介
Calling contexts are very important for a wide range of applications such as profiling, debugging, and event logging. Most applications perform expensive stack walking to recover contexts. The resulting contexts are often explicitly represented as a sequence of call sites and hence bulky. We propose a technique to encode the current calling context of any point during an execution. In particular, an acyclic call path is encoded into one number through only integer additions. Recursive call paths are divided into acyclic subsequences and encoded independently. We leverage stack depth in a safe way to optimize encoding: if a calling context can be safely and uniquely identified by its stack depth, we do not perform encoding. We propose an algorithm to seamlessly fuse encoding and stack depth based identification. The algorithm is safe because different contexts are guaranteed to have different IDs. It also ensures …
引用总数
201020112012201320142015201620172018201920202021202220232024357971087844452
学术搜索中的文章
WN Sumner, Y Zheng, D Weeratunge, X Zhang - Proceedings of the 32nd ACM/IEEE International …, 2010