The Java memory model

Author:

Manson Jeremy1,Pugh William1,Adve Sarita V.2

Affiliation:

1. University of Maryland, College Park, MD

2. University of Illinois at Urbana-Champaign, Urbana-Champaign, IL

Abstract

This paper describes the new Java memory model, which has been revised as part of Java 5.0. The model specifies the legal behaviors for a multithreaded program; it defines the semantics of multithreaded Java programs and partially determines legal implementations of Java virtual machines and compilers.The new Java model provides a simple interface for correctly synchronized programs -- it guarantees sequential consistency to data-race-free programs. Its novel contribution is requiring that the behavior of incorrectly synchronized programs be bounded by a well defined notion of causality. The causality requirement is strong enough to respect the safety and security properties of Java and weak enough to allow standard compiler and hardware optimizations. To our knowledge, other models are either too weak because they do not provide for sufficient safety/security, or are too strong because they rely on a strong notion of data and control dependences that precludes some standard compiler transformations.Although the majority of what is currently done in compilers is legal, the new model introduces significant differences, and clearly defines the boundaries of legal transformations. For example, the commonly accepted definition for control dependence is incorrect for Java, and transformations based on it may be invalid.In addition to providing the official memory model for Java, we believe the model described here could prove to be a useful basis for other programming languages that currently lack well-defined models, such as C++ and C#.

Publisher

Association for Computing Machinery (ACM)

Subject

Computer Graphics and Computer-Aided Design,Software

Reference42 articles.

1. Shared memory consistency models: a tutorial

2. Weak ordering---a new definition

3. Sarita V. Adve. The SC- memory model for Java 2004. http://www.cs.uiuc.edu/~sadve/jmm.]] Sarita V. Adve. The SC- memory model for Java 2004. http://www.cs.uiuc.edu/~sadve/jmm.]]

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

1. Formal Definitions and Performance Comparison of Consistency Models for Parallel File Systems;IEEE Transactions on Parallel and Distributed Systems;2024-06

2. Hawkeyes: Addressing Weak Memory Order in Program Migration Based on Instruction Windows;Proceedings of the 4th Workshop on Challenges and Opportunities of Efficient and Performant Storage Systems;2024-04-22

3. A Denotational Approach to Release/Acquire Concurrency;Lecture Notes in Computer Science;2024

4. JPF: From 2003 to 2023;Lecture Notes in Computer Science;2024

5. Static Analysis of Memory Models for SMT Encodings;Proceedings of the ACM on Programming Languages;2023-10-16

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

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

www.globalauthorid.com

TOP

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