Consistency Checking for Refactoring from Coarse-Grained Locks to Fine-Grained Locks

被引:0
|
作者
Zhang, Yang [1 ]
Liu, Jingjing [1 ]
Qi, Lin [1 ]
Meredith, Grant [2 ]
机构
[1] Hebei Univ Sci & Technol, Sch Informat Sci & Engn, Shijiazhuang 050018, Peoples R China
[2] Federat Univ Australia, Global Profess Sch, Ballarat, Australia
关键词
Refactoring; consistency checking; parallel extended finite automaton; dependency analysis; VERIFICATION; PROGRAMS;
D O I
10.1142/S0218194024500141
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
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.
引用
收藏
页码:1063 / 1093
页数:31
相关论文
共 50 条
  • [41] Blind Image Quality Assessment With Coarse-Grained Perception Construction and Fine-Grained Interaction Learning
    Hu, Bo
    Zhao, Tuoxun
    Zheng, Jia
    Zhang, Yan
    Li, Leida
    Li, Weisheng
    Gao, Xinbo
    IEEE TRANSACTIONS ON BROADCASTING, 2024, 70 (02) : 533 - 544
  • [42] The performance of fine-grained and coarse-grained elastic network models and its dependence on various factors
    Na, Hyuntae
    Song, Guang
    PROTEINS-STRUCTURE FUNCTION AND BIOINFORMATICS, 2015, 83 (07) : 1273 - 1283
  • [43] FiCoS: A fine-grained and coarse-grained GPU-powered deterministic simulator for biochemical networks
    Tangherloni, Andrea
    Nobile, Marco S.
    Cazzaniga, Paolo
    Capitoli, Giulia
    Spolaor, Simone
    Rundo, Leonardo
    Mauri, Giancarlo
    Besozzi, Daniela
    PLOS COMPUTATIONAL BIOLOGY, 2021, 17 (09)
  • [44] DISPERSION OF THE BANK VOLE IN FINE-GRAINED AND COARSE-GRAINED MOSAICS OF DECIDUOUS AND MIXED CONIFEROUS FORESTS
    CHETNICKI, W
    MAZURKIEWICZ, M
    ACTA THERIOLOGICA, 1994, 39 (02): : 127 - 142
  • [45] Automated Refactoring from Synchronized Locks to Reentrant Locks
    Zhang, Yang
    Zhang, Dongwen
    Wang, Huiyong
    INTERNATIONAL JOURNAL OF GRID AND DISTRIBUTED COMPUTING, 2016, 9 (06): : 71 - 81
  • [46] Coarse-grained information dominates fine-grained information in judgments of time-to-contact from retinal flow
    Harris, MG
    Giachritsis, CD
    VISION RESEARCH, 2000, 40 (06) : 601 - 611
  • [47] An optimal coarse-grained arc consistency algorithm
    Bessière, C
    Régin, JC
    Yap, RHC
    Zhang, YL
    ARTIFICIAL INTELLIGENCE, 2005, 165 (02) : 165 - 185
  • [48] Representability and Dynamical Consistency in Coarse-Grained Models
    Banos, Manuel Palma
    Popov, Alexander V.
    Hernandez, Rigoberto
    JOURNAL OF PHYSICAL CHEMISTRY B, 2024, 128 (06): : 1506 - 1514
  • [49] Exploiting multidirectionality in coarse-grained are consistency algorithms
    Lecoutre, C
    Boussemart, F
    Hemery, F
    PRINCIPLES AND PRACTICE OF CONSTRAINT PROGRAMMING - CP 2003, PROCEEDINGS, 2003, 2833 : 480 - 494
  • [50] A fine-grained distinction of coarse graining
    Morita, Kohei
    EUROPEAN JOURNAL FOR PHILOSOPHY OF SCIENCE, 2023, 13 (01)