期刊文献+

面向死锁规避的路径敏感插桩

Deadlock Avoidance Oriented Path Sensitive Instrumentation
下载PDF
导出
摘要 程序插桩技术是一种基本的测试手段,在软件测试中被广泛的应用。插装方式是指在程序源码中插入一些语句,通过这些语句可以获得所需要的信息,在死锁规避的静态分析中需要通过程序插桩的方式记录下一些信息。程序插桩按照源程序的结构分为顺序结构的插桩,分支结构的插桩和循环结构的插桩。在对源程序进行词法语法分析的基础上建立抽象语法树和控制流图,根据控制流图获取程序可能执行的所有路径信息,接着根据路径信息决定插桩的内容。 The instrumentation of the program is a basic test method,which is widely used in software testing. In instrumentation method is to insert some of the statements in the program source code,the required information is available through these statements,in static analysis of the deadlock avoidance through program instrumentation some information needs to be recorded. Procedures for the insertion into the structure of the source code structure is divided into the order of the structure of the insert,the branch structure of the insert and the structure of the loop. In this paper,on the basis of the lexical and syntax analysis of the source program to establish abstract syntax tree and control flow graph,according to the control flow graph to obtain the program may perform all path information,then according to the route information to decide the inserted content.
出处 《智能计算机与应用》 2015年第5期108-112,共5页 Intelligent Computer and Applications
基金 国家自然科学基金(61173021)
关键词 词法分析 语法分析 抽象语法树 程序插桩 Lexical Analysis Syntax Analysis Abstract Syntax Tree Program Instrumentation
  • 相关文献

参考文献7

  • 1GERAKIOS P, PAPASPYROU N, SAGONAS K, et al. Dynamic deadlock avoidance in systems code using statically inferred effects [C]//Proceedings of the 6th Workshop on Programming Languages and Operating Systems, New York, NY, USA:ACM, 2011 : 5.
  • 2白哥乐.基于静态源码分析的多线程死锁检测方法研究[D].北京:北京邮电大学,2010.
  • 3BERGER E D, YANG T, LIU T, et al. Grace: safe multithreaded programming for C/C + + [ J ]. ACM Sigplan Notices, 2009, 44 (10) : 81 -96.
  • 4RABIN M O, SCOTY D. Finite automata and their decision problems [J]. IBM Journal of Research and Development, 1959, 3(2) : 114 - 125.
  • 5BERGER E, YANG T, LIU T, et al. Grace : Safe and efficient con- current programming[ C]//Object - Oriented Programming, Systems, Languages & Applications, Orlando, Florida: ACM,2009 : 123 - 137.
  • 6JULA H, CANDEA G. A scalable, sound, eventually - complete al- gorithm for deadlock immunity [ C ]//Runtime Verification, Berlin Heidelberg:Springer, 2008 : 119 - 136.
  • 7苏小红,禹振,王甜甜,等.并发缺陷暴露、检测与规避研究综述[J].计算机学报,2014,37(103):1—19.

共引文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部