Application Of Java-Based Pointcuts In Aspect Oriented Programming (Aop) For Data Race Detection

Wide applicability of concurrent programming practices in developing various software applications leads to different concurrency errors amongst which data race is the most important. Java provides greatest support for concurrent programming by introducing various concurrency packages. Aspect orient...

Full description

Bibliographic Details
Main Authors: Khalid, Sadaf, Arif, Fahim
Format: Text
Language:English
Published: Zenodo 2012
Subjects:
Online Access:https://dx.doi.org/10.5281/zenodo.1070234
https://zenodo.org/record/1070234
Description
Summary:Wide applicability of concurrent programming practices in developing various software applications leads to different concurrency errors amongst which data race is the most important. Java provides greatest support for concurrent programming by introducing various concurrency packages. Aspect oriented programming (AOP) is modern programming paradigm facilitating the runtime interception of events of interest and can be effectively used to handle the concurrency problems. AspectJ being an aspect oriented extension to java facilitates the application of concepts of AOP for data race detection. Volatile variables are usually considered thread safe, but they can become the possible candidates of data races if non-atomic operations are performed concurrently upon them. Various data race detection algorithms have been proposed in the past but this issue of volatility and atomicity is still unaddressed. The aim of this research is to propose some suggestions for incorporating certain conditions for data race detection in java programs at the volatile fields by taking into account support for atomicity in java concurrency packages and making use of pointcuts. Two simple test programs will demonstrate the results of research. The results are verified on two different Java Development Kits (JDKs) for the purpose of comparison. : {"references": ["\"Oracle Solaris Studio 12.2 Thread Analyzer User-s Guide,\" Internet:\ndownload.oracle.com/docs/cd/E18659_01/pdf/821-2124.pdf [6 Sep.\n2010].", "S.Savage, M.Burrows, G.Nelson, P.Sobalvarro and T.Anderson,\n\"Eraser: A Dynamic Data Race Detector for Multithreaded Programs,\"\nACM Trans. Computer Systems, Vol.15, No.4, pp. 391-411, 1997.", "Eric Bodden and Klaus Havelund, \"Aspect-Oriented Race Detection in\nJava\", IEEE Trans. on Software Engineering, Vol.36, N0.4, July/August\n2010.", "Eric Bodden and Klaus Havelund, \"Racer: Effective Race Detection\nUsing AspectJ\", Proc. Int-l Symp. Software Testing and Analysis, pp.\n155-165, July 2008.", "J.Harrow, \"Runtime Checking of Multithreaded Application with Visual\nThreads\", SPIN Model Checking and Software Verification, Springer,\npp. 331-342, 2000.", "R. O-Callahan and J-D. Choi, \"Hybrid Dynamic Data Race Detection\",\nProc. ACM SIGPLAN Symp. Principles and Practice of Parallel\nProgramming, pp. 167-178, 2003.", "Pouria Shaker and Dennis K. Peters, \"An Introduction to Aspect-\nOriented Software Development\", Proc. Newfoundland Electrical and\nComputer Engineering Conference, October 2005.", "Gregor Kiczales, Erik Hilsdale, Jim Hugunin, Mik Kersten, Jeffrey Palm\nand William G. Griswold, \"An Overview of AspectJ\", ECOOP-01 Proc.\nof 15th European Conference on Object Oriented Programming, 2001.", "Mayur Hiru Naik, \"Effective Static Race Detection for Java\", Ph.D\nDissertation, March 2008.\n[10] Mayur Naik and Alex Aiken, \"Conditional Must Not Aliasing for Static\nRace Detection\", Proc. of the 34th annual ACM SIGPLAN, 2007."]}