节点文献
Hadoop集群下的并行克隆代码检测
Parallel clone code detector in Hadoop cluster
【摘要】 克隆代码会导致项目的维护困难,削弱项目的健壮性,并且克隆代码中所包含的bug会破坏整个项目。当前克隆代码检测技术或者拘泥于只能检测少数几种克隆代码,或者需要极高的检测时间。而且如果需要检测大量的源代码,一台机器的主存也许无法存储所有的信息。对克隆代码检测技术的并行运行进行了可能性研究,使用基于程序依赖图的克隆代码检测技术,这种技术不仅可以检测出语法上的克隆,也可以检测出语义上的克隆,提出了一个并行子图同构检测方法并使用MapReduce并行实现,实验结果极大地提高了该方法的运行速度。
【Abstract】 Clone codes make the project hard to maintain and weaken the robustness, and the bugs in these codes would undermine the whole project. The state-of-the-art clone code detectors are either not able to find code with same semantics, or computationally expensive. And if clone code detector is to be performed on plenty number of code, the main memory of one machine may not able to hold all the information. In this paper we focus on the parallel of the clone code detector, we utilize the program dependence graph(PDG)-based code clone detection method, which can not only check the code in contiguous syntax, but also the code with the same semantics. We present an approach to parallel the isomorphism matching in the PDG. By using MapReduce paradigm, we dramatically enhance the searching speed of this method.
- 【文献出处】 微型机与应用 ,Microcomputer & Its Applications , 编辑部邮箱 ,2014年02期
- 【分类号】TP311.52
- 【被引频次】1
- 【下载频次】60