Dangling pointer error is pervasive in C/C++ programs and it is very hard to detect. This paper introduces an efficient detector to detect dangling pointer error in C/C++ programs. By selectively leave some memory accesses unmonitored, our method could reduce the memory monitoring overhead and thus achieves better performance over previous methods. Experiments show that our method could achieve an average speed up of 9% over previous compiler instrumentation based method and more than 50% over previous page protection based method.
展开▼
机译:悬挂指针错误在C / C ++程序中普遍存在,并且很难检测到。本文介绍了一个有效的探测器,以检测C / C ++程序中的悬空指针错误。通过选择性地留下一些内存访问不受监视,我们的方法可以减少内存监控开销,从而实现了对先前的方法更好的性能。实验表明,我们的方法可以在以前的编译器仪器的方法上达到9%的平均速度,超过前页保护的方法超过50%。
展开▼