Projects per year
Abstract
ARM has a relaxed memory model, previously specified in informal prose for ARMv7 and ARMv8. Over time, and partly due to work building formal semantics for ARM concurrency, it has become clear that some of the complexity of the model is not justified by the potential benefits. In particular, the model was originally non-multicopy-atomic: writes could become visible to some other threads before becoming visible to all — but this has not been exploited in production implementations, the corresponding potential hardware optimisations are thought to have insufficient benefits in the ARM context, and it gives rise to subtle complications when combined with other ARMv8 features. The ARMv8 architecture has therefore been revised: it now has a multicopy-atomic model. It has also been simplified in other respects, including more straightforward notions of dependency, and the architecture now includes a formal concurrency model.
In this paper we detail these changes and discuss their motivation. We define two formal concurrency models: an operational one, simplifying the Flowing model of Flur et al., and the axiomatic model of the revised ARMv8 specification. The models were developed by an academic group and by ARM staff, respectively, and this extended collaboration partly motivated the above changes. We prove the equivalence of the two models. The operational model is integrated into an executable exploration tool with new web interface, demonstrated by exhaustively checking the possible behaviours of a loop-unrolled version of a Linux kernel lock implementation, a previously known bug due to unprevented speculation, and a fixed version.
In this paper we detail these changes and discuss their motivation. We define two formal concurrency models: an operational one, simplifying the Flowing model of Flur et al., and the axiomatic model of the revised ARMv8 specification. The models were developed by an academic group and by ARM staff, respectively, and this extended collaboration partly motivated the above changes. We prove the equivalence of the two models. The operational model is integrated into an executable exploration tool with new web interface, demonstrated by exhaustively checking the possible behaviours of a loop-unrolled version of a Linux kernel lock implementation, a previously known bug due to unprevented speculation, and a fixed version.
Original language | English |
---|---|
Title of host publication | Proceedings of the ACM on Programming Languages (POPL '18) |
Place of Publication | New York |
Publisher | ACM |
Pages | 1-29 |
Number of pages | 29 |
DOIs | |
Publication status | Published - Jan 2018 |
Event | POPL '18 45th ACM SIGPLAN Symposium on Principles of Programming Languages - Los Angeles, United States Duration: 7 Jan 2018 → 13 Jan 2018 Conference number: 45 https://popl18.sigplan.org/ |
Publication series
Name | Proceedings of the ACM on Programming Languages |
---|---|
Publisher | Association for Computing Machinery |
Number | POPL |
Volume | 2 |
ISSN (Electronic) | 2475-1421 |
Conference
Conference | POPL '18 45th ACM SIGPLAN Symposium on Principles of Programming Languages |
---|---|
Abbreviated title | POPL |
Country/Territory | United States |
City | Los Angeles |
Period | 7/01/18 → 13/01/18 |
Internet address |
Keywords
- Relaxed Memory Models
- Semantics
- Operational
- Axiomatic
Fingerprint
Dive into the research topics of 'Simplifying ARM concurrency: multicopy-atomic axiomatic and operational models for ARMv8'. Together they form a unique fingerprint.Projects
- 1 Finished
-
C: Scalable Shared Memory: C3 Scalable Shared Memory via Consistency-directed Cache Coherence
Sarkar, S. (PI)
9/11/15 → 30/04/19
Project: Standard