Consistency Checking for Refactoring from Coarse-grained locks to Fine-grained locks

重构代码 一致性(知识库) 计算机科学 程序设计语言 锁(火器) 分布式计算 工程类 软件 人工智能 机械工程
作者
Yang Zhang,Jingjing Liu,Qian Lin,Grant Meredith
出处
期刊:International Journal of Software Engineering and Knowledge Engineering [World Scientific]
卷期号:: 1-31
标识
DOI:10.1142/s0218194024500141
摘要

Refactoring for locks is widely used to improve the scalability and performance of concurrent programs. However, when refactoring from coarse-grained locks to fine-grained locks, the behavior of concurrent programs may be changed. To this end, we present LockCheck, a consistency-checking approach based on the parallel extended finite automaton for fine-grained locks. First, we model the critical sections of concurrent programs through control flow analysis and dependency analysis. Second, we sequentialize the concurrent programs to get all the possible transition paths. Furthermore, it reduces the exploration of the redundant paths using partial order theory to obtain the compared transition paths. Finally, we combine consistency rules to check the consistency of the program before and after refactoring. We evaluated LockCheck in five open-source projects. A total of 1528 refactoring operations have been evaluated and 93 inconsistent refactoring operations have been detected. The results show that LockCheck can effectively detect inconsistent behavior when coarse-grained locks are refactored into fine-grained locks.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
更新
PDF的下载单位、IP信息已删除 (2025-6-4)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
善学以致用应助奔波霸采纳,获得10
1秒前
1秒前
朱丁丁发布了新的文献求助10
1秒前
花粉过敏发布了新的文献求助10
4秒前
burningzmz发布了新的文献求助30
4秒前
5秒前
Jasper应助亲爱的融采纳,获得10
5秒前
一直发布了新的文献求助10
5秒前
y111完成签到,获得积分10
5秒前
Zayro完成签到,获得积分10
6秒前
夏侯寄真发布了新的文献求助10
6秒前
7秒前
7秒前
8秒前
8秒前
CipherSage应助朱丁丁采纳,获得10
9秒前
小二郎应助直率的初露采纳,获得10
10秒前
jinfeizuo完成签到,获得积分10
10秒前
qi发布了新的文献求助10
10秒前
可可应助青阳采纳,获得10
11秒前
VitoLi发布了新的文献求助10
11秒前
淡淡夕阳发布了新的文献求助10
12秒前
12秒前
Ava应助正直千兰采纳,获得10
13秒前
共享精神应助正直千兰采纳,获得10
13秒前
田様应助正直千兰采纳,获得10
13秒前
小路发布了新的文献求助10
13秒前
宝宝言兼发布了新的文献求助10
13秒前
清脆大树发布了新的文献求助30
14秒前
fuje发布了新的文献求助10
17秒前
18秒前
等待的鞯发布了新的文献求助10
18秒前
于东发布了新的文献求助10
18秒前
花粉过敏完成签到,获得积分10
19秒前
李爱国应助xiao123789采纳,获得10
20秒前
等待盼雁完成签到,获得积分10
20秒前
XX完成签到,获得积分10
20秒前
JamesPei应助DrD采纳,获得10
20秒前
木讷山完成签到,获得积分10
20秒前
CodeCraft应助BaBa采纳,获得10
21秒前
高分求助中
A new approach to the extrapolation of accelerated life test data 1000
Cognitive Neuroscience: The Biology of the Mind 1000
Technical Brochure TB 814: LPIT applications in HV gas insulated switchgear 1000
Immigrant Incorporation in East Asian Democracies 600
Nucleophilic substitution in azasydnone-modified dinitroanisoles 500
不知道标题是什么 500
A Preliminary Study on Correlation Between Independent Components of Facial Thermal Images and Subjective Assessment of Chronic Stress 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 生物化学 物理 内科学 纳米技术 计算机科学 化学工程 复合材料 遗传学 基因 物理化学 催化作用 冶金 细胞生物学 免疫学
热门帖子
关注 科研通微信公众号,转发送积分 3966458
求助须知:如何正确求助?哪些是违规求助? 3511927
关于积分的说明 11160884
捐赠科研通 3246684
什么是DOI,文献DOI怎么找? 1793478
邀请新用户注册赠送积分活动 874465
科研通“疑难数据库(出版商)”最低求助积分说明 804403