A context-sensitive approach to data race detection

To improve the correctness of data race detection, an approach to the data race detection based on the context-sensitive analysis in multithreaded programs was proposed. Firstly, control flow analysis was used to construct context-sensitive call graphs, and then escape analysis was employed to find...

Full description

Bibliographic Details
Main Authors: Yang ZHANG, Huan LIU, Dongwen ZHANG
Format: Article
Language:zho
Published: Hebei University of Science and Technology 2020-10-01
Series:Journal of Hebei University of Science and Technology
Subjects:
Online Access:http://xuebao.hebust.edu.cn/hbkjdx/ch/reader/create_pdf.aspx?file_no=b202005005&flag=1&journal_
id doaj-9a2b5c92ec46494590bfa6349b351c9d
record_format Article
spelling doaj-9a2b5c92ec46494590bfa6349b351c9d2020-11-25T04:07:31ZzhoHebei University of Science and TechnologyJournal of Hebei University of Science and Technology1008-15422020-10-0141541642310.7535/hbkd.2020yx05005b202005005A context-sensitive approach to data race detectionYang ZHANG0Huan LIU1Dongwen ZHANG2School of Information Science and Engineering, Hebei University of Science and Technology, Shijiazhuang, Hebei 050018, ChinaSchool of Information Science and Engineering, Hebei University of Science and Technology, Shijiazhuang, Hebei 050018, ChinaSchool of Information Science and Engineering, Hebei University of Science and Technology, Shijiazhuang, Hebei 050018, ChinaTo improve the correctness of data race detection, an approach to the data race detection based on the context-sensitive analysis in multithreaded programs was proposed. Firstly, control flow analysis was used to construct context-sensitive call graphs, and then escape analysis was employed to find thread-escaped objects that may cause data race. Secondly, context-sensitive alias analysis was conducted to reduce false positives and false negatives. Finally, the happens-before analysis was performed to remove false positives caused by ignoring thread interactions. A data race detection tool ConRacer was implemented in WALA framework based on this approach and was compared with the existing tools SRD and RVPredict. The experimental results show that ConRacer is the most precise tool compared with SRD and RVPredict and it can not only detect data races, but also reduce false positives and false negatives effectively. ConRacer improves the detection accuracy by combining context-sensitive with static detection methods, which has certain reference value for discovering concurrent errors and optimizing software performance.http://xuebao.hebust.edu.cn/hbkjdx/ch/reader/create_pdf.aspx?file_no=b202005005&flag=1&journal_parallel processing; concurrent programs; data race; context-sensitive; escape analysis
collection DOAJ
language zho
format Article
sources DOAJ
author Yang ZHANG
Huan LIU
Dongwen ZHANG
spellingShingle Yang ZHANG
Huan LIU
Dongwen ZHANG
A context-sensitive approach to data race detection
Journal of Hebei University of Science and Technology
parallel processing; concurrent programs; data race; context-sensitive; escape analysis
author_facet Yang ZHANG
Huan LIU
Dongwen ZHANG
author_sort Yang ZHANG
title A context-sensitive approach to data race detection
title_short A context-sensitive approach to data race detection
title_full A context-sensitive approach to data race detection
title_fullStr A context-sensitive approach to data race detection
title_full_unstemmed A context-sensitive approach to data race detection
title_sort context-sensitive approach to data race detection
publisher Hebei University of Science and Technology
series Journal of Hebei University of Science and Technology
issn 1008-1542
publishDate 2020-10-01
description To improve the correctness of data race detection, an approach to the data race detection based on the context-sensitive analysis in multithreaded programs was proposed. Firstly, control flow analysis was used to construct context-sensitive call graphs, and then escape analysis was employed to find thread-escaped objects that may cause data race. Secondly, context-sensitive alias analysis was conducted to reduce false positives and false negatives. Finally, the happens-before analysis was performed to remove false positives caused by ignoring thread interactions. A data race detection tool ConRacer was implemented in WALA framework based on this approach and was compared with the existing tools SRD and RVPredict. The experimental results show that ConRacer is the most precise tool compared with SRD and RVPredict and it can not only detect data races, but also reduce false positives and false negatives effectively. ConRacer improves the detection accuracy by combining context-sensitive with static detection methods, which has certain reference value for discovering concurrent errors and optimizing software performance.
topic parallel processing; concurrent programs; data race; context-sensitive; escape analysis
url http://xuebao.hebust.edu.cn/hbkjdx/ch/reader/create_pdf.aspx?file_no=b202005005&flag=1&journal_
work_keys_str_mv AT yangzhang acontextsensitiveapproachtodataracedetection
AT huanliu acontextsensitiveapproachtodataracedetection
AT dongwenzhang acontextsensitiveapproachtodataracedetection
AT yangzhang contextsensitiveapproachtodataracedetection
AT huanliu contextsensitiveapproachtodataracedetection
AT dongwenzhang contextsensitiveapproachtodataracedetection
_version_ 1724428507451228160