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 条
  • [1] Fine-Grained Scalable Streaming from Coarse-Grained Videos
    Ni, Pengpeng
    Eichhorn, Alexander
    Griwodz, Carsten
    Halvorsen, Pal
    NOSSDAV 09: 18TH INTERNATIONAL WORKSHOP ON NETWORK AND OPERATING SYSTEMS SUPPORT FOR DIGITAL AUDIO AND VIDEO, 2009, : 103 - 108
  • [2] Scratch Testing of Coarse-Grained and Ultra Fine-Grained Copper
    Filippov, A. V.
    Tarasov, S. Yu.
    Fortuna, S. V.
    Podgornyh, O. A.
    Shamarin, N. N.
    Filippova, E. O.
    PROCEEDINGS OF THE ADVANCED MATERIALS WITH HIERARCHICAL STRUCTURE FOR NEW TECHNOLOGIES AND RELIABLE STRUCTURES, 2018, 2051
  • [3] Fine-grained and coarse-grained entropy in problems of statistical mechanics
    V. V. Kozlov
    D. V. Treshchev
    Theoretical and Mathematical Physics, 2007, 151 : 539 - 555
  • [4] Fine-grained and coarse-grained entropy in problems of statistical mechanics
    Kozlov, V. V.
    Treshchev, D. V.
    THEORETICAL AND MATHEMATICAL PHYSICS, 2007, 151 (01) : 539 - 555
  • [5] Fine-grained and coarse-grained contrastive learning for text classification
    Zhang, Shaokang
    Ran, Ning
    NEUROCOMPUTING, 2024, 596
  • [6] Free search algorithm based on coarse-grained and fine-grained crossover
    Zhou, Hui
    Li, Dan-Mei
    Xu, Chen
    Shao, Shi-Huang
    Yuan, Cong-Ming
    Kongzhi yu Juece/Control and Decision, 2008, 23 (09): : 1068 - 1072
  • [7] A MULTIPROCESSOR ARCHITECTURE COMBINING FINE-GRAINED AND COARSE-GRAINED PARALLELISM STRATEGIES
    LILJA, DJ
    PARALLEL COMPUTING, 1994, 20 (05) : 729 - 751
  • [8] EVALUATING PERFORMANCE TRADEOFFS BETWEEN FINE-GRAINED AND COARSE-GRAINED ALTERNATIVES
    DUBEY, PK
    ADAMS, GB
    FLYNN, MJ
    IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEMS, 1995, 6 (01) : 17 - 27
  • [9] A Fine-Grained Multicasting of Configuration Data for Coarse-Grained Reconfigurable Architectures
    Kojima, Takuya
    Amano, Hideharu
    IEICE TRANSACTIONS ON INFORMATION AND SYSTEMS, 2019, E102D (07): : 1247 - 1256
  • [10] Prediction of compaction parameters for fine-grained and coarse-grained soils: a review
    Verma, Gaurav
    Kumar, Brind
    INTERNATIONAL JOURNAL OF GEOTECHNICAL ENGINEERING, 2020, 14 (08) : 970 - 977