Static deadlock detection for Java libraries

Download: PDF.

“Static deadlock detection for Java libraries” by Amy Williams, William Thies, and Michael D. Ernst. In ECOOP 2005 — Object-Oriented Programming, 19th European Conference, (Glasgow, Scotland), July 2005, pp. 602-629.

Abstract

Library writers wish to provide a guarantee not only that each procedure in the library performs correctly in isolation, but also that the procedures perform correctly when run in conjunction. To this end, we propose a method for static detection of deadlock in Java libraries. Our goal is to determine whether client code exists that may deadlock a library, and, if so, to enable the library writer to discover the calling patterns that can lead to deadlock.

Our flow-sensitive, context-sensitive analysis determines possible deadlock configurations using a lock-order graph. This graph represents the order in which locks are acquired by the library. Cycles in the graph indicate deadlock possibilities, and our tool reports all such possibilities. We implemented our analysis and evaluated it on 18 libraries comprising 1245 kLOC. We verified 13 libraries to be free from deadlock, and found 14 distinct deadlocks in 3 libraries.

Download: PDF.

BibTeX entry:

@inproceedings{WilliamsTE2005,
   author = {Amy Williams and William Thies and Michael D. Ernst},
   title = {Static deadlock detection for {Java} libraries},
   booktitle = {ECOOP 2005 --- Object-Oriented Programming, 19th European
	Conference},
   pages = {602--629},
   address = {Glasgow, Scotland},
   month = jul,
   year = {2005}
}

(This webpage was created with bibtex2web.)

Back to Michael Ernst's publications.