Science China Information Sciences

, Volume 55, Issue 12, pp 2774–2784

An efficient method for detecting concurrency errors in object-oriented programs

Research Paper Progress of Projects Supported by NSFC

DOI: 10.1007/s11432-012-4751-z

Cite this article as:
He, Y., Wu, W. & Chen, Y. Sci. China Inf. Sci. (2012) 55: 2774. doi:10.1007/s11432-012-4751-z


Multicore and multi-threaded processors have become the norm for modern processors. Accordingly, concurrent programs have become more and more prevalent despite being difficult to write and understand. Although errors are highly likely to appear in concurrent code, conventional error detection methods such as model checking, theorem proving, and code analysis do not scale smoothly to concurrent programs. Testing is an indispensable technique for detecting concurrency errors, but it involves a great deal of manual work and is inefficient. This paper presents an automatic method for detecting concurrency errors in classes in object-oriented languages. The method uses a heuristic algorithm to automatically generate test cases that can effectively trigger errors. Then, each test case is executed automatically and a fast method is adopted to identify the actual concurrency error from anomalous run results. We have implemented a prototype of the method and applied it to some typical Java classes. Evaluation shows that our method is more effective and faster than previous work.


concurrency error dynamic test data race atomicity violations test case generation 

Copyright information

© Science China Press and Springer-Verlag Berlin Heidelberg 2012

Authors and Affiliations

  1. 1.School of ComputersWuhan UniversityWuhanChina
  2. 2.State Key Laboratory of Software EngineeringWuhan UniversityWuhanChina

Personalised recommendations