Lock allocation

Author:

Emmi Michael1,Fischer Jeffrey S.1,Jhala Ranjit2,Majumdar Rupak1

Affiliation:

1. UC Los Angeles

2. UC San Diego

Abstract

We introduce lock allocation , an automatic technique that takes a multi-threaded program annotated with atomic sections (that must be executed atomically), and infers a lock assignment from global variables to locks and a lock instrumentation that determines where each lock should be acquired and released such that the resulting instrumented program is guaranteed to preserve atomicity and deadlock freedom (provided all shared state is accessed only within atomic sections). Our algorithm works in the presence of pointers and procedures, and sets up the lock allocation problem as a 0-1 ILP which minimizes the conflict cost between atomic sections while simultaneously minimizing the number of locks. We have implemented our algorithm for both C with pthreads and Java, and have applied it to infer locks in 15K lines of AOLserver code. Our automatic allocation produces the same results as hand annotations for most of this code, while solving the optimization instances within a second for most programs.

Publisher

Association for Computing Machinery (ACM)

Subject

Computer Graphics and Computer-Aided Design,Software

Reference20 articles.

1. L.O. Andersen. Program analysis and specialization for the C programming language. PhD thesis 1994. L.O. Andersen. Program analysis and specialization for the C programming language. PhD thesis 1994.

2. Aolserver. http://www.aolserver.com. Aolserver. http://www.aolserver.com.

3. Type-based race detection for Java

Cited by 9 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Towards generating thread-safe classes automatically;Proceedings of the 35th IEEE/ACM International Conference on Automated Software Engineering;2020-12-21

2. An Automated Refactoring Approach to Improve IoT Software Quality;Applied Sciences;2020-01-06

3. Lock-Free Transactional Transformation for Linked Data Structures;ACM Transactions on Parallel Computing;2018-09-19

4. Automatic Scalable Atomicity via Semantic Locking;ACM Transactions on Parallel Computing;2017-03-23

5. Lock-free Transactions without Rollbacks for Linked Data Structures;Proceedings of the 28th ACM Symposium on Parallelism in Algorithms and Architectures;2016-07-11

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3