A study and toolkit of CHECK‐THEN‐ACT idioms of Java concurrent collections. (9th February 2015)
- Record Type:
- Journal Article
- Title:
- A study and toolkit of CHECK‐THEN‐ACT idioms of Java concurrent collections. (9th February 2015)
- Main Title:
- A study and toolkit of CHECK‐THEN‐ACT idioms of Java concurrent collections
- Authors:
- Lin, Yu
Dig, Danny
Baudry, Benoit
Orso, Alessandro - Abstract:
- <abstract abstract-type="main" id="stvr1567-abs-0001"> <title>Summary</title> <p id="stvr1567-para-0001">Concurrent collections are widely used in concurrent programs. However, programmers can misuse these concurrent collections when composing two operations where a <italic>check</italic> on the collection (e.g., collection contains an element) precedes an <italic>action</italic> (e.g., inserting an element). Unless the whole composition is atomic, the program contains an atomicity violation bug. This paper presents an extensive empirical study of <sc>CHECK‐THEN‐ACT</sc> idioms of Java (Oracle Corporation, Redwood, CA, USA) concurrent collections. We analyze 28 widely used open‐source Java projects (comprising 6.4 million lines of code) that use Java concurrent collections. We study the correct and incorrect use of idioms and the evolution of the programs with respect to idioms. Our tool, <sc>CTADETECTOR</sc>, detects and corrects misused idioms. <sc>CTADETECTOR</sc> discovered 60 bugs that were confirmed and fixed by developers. This shows that <sc>CHECK‐THEN‐ACT</sc> idioms are commonly misused in practice, and correcting them is important. Copyright © 2015 John Wiley & Sons, Ltd.</p> </abstract>
- Is Part Of:
- Software testing, verification & reliability. Volume 25:Number 4(2015:Oct.)
- Journal:
- Software testing, verification & reliability
- Issue:
- Volume 25:Number 4(2015:Oct.)
- Issue Display:
- Volume 25, Issue 4 (2015)
- Year:
- 2015
- Volume:
- 25
- Issue:
- 4
- Issue Sort Value:
- 2015-0025-0004-0000
- Page Start:
- 397
- Page End:
- 425
- Publication Date:
- 2015-02-09
- Subjects:
- Computer software -- Testing -- Periodicals
Computer software -- Verification -- Periodicals
Computer software -- Reliability -- Periodicals
005.14 - Journal URLs:
- http://onlinelibrary.wiley.com/ ↗
- DOI:
- 10.1002/stvr.1567 ↗
- Languages:
- English
- ISSNs:
- 0960-0833
- Deposit Type:
- Legaldeposit
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library DSC - 8321.457500
British Library DSC - BLDSS-3PM
British Library STI - ELD Digital store - Ingest File:
- 3471.xml