Abstract
Previous work on the semantics of relaxed shared-memory concurrency has only considered the case in which each load reads the data of exactly one store. In practice, however, multiprocessors support mixed-size accesses, and these are used by systems software and (to some degree) exposed at the C/C++ language level. A semantic foundation for software, therefore, has to address them.
We investigate the mixed-size behaviour of ARMv8 and IBM POWER architectures and implementations: by experiment, by developing semantic models, by testing the correspondence between these, and by discussion with ARM and IBM staff. This turns out to be surprisingly subtle, and on the way we have to revisit the fundamental concepts of coherence and sequential consistency, which change in this setting. In particular, we show that adding a memory barrier between each instruction does not restore sequential consistency. We go on to extend the C/C++11 model to support non-atomic mixed-size memory accesses.
This is a necessary step towards semantics for real-world shared-memory concurrent code, beyond litmus tests.
We investigate the mixed-size behaviour of ARMv8 and IBM POWER architectures and implementations: by experiment, by developing semantic models, by testing the correspondence between these, and by discussion with ARM and IBM staff. This turns out to be surprisingly subtle, and on the way we have to revisit the fundamental concepts of coherence and sequential consistency, which change in this setting. In particular, we show that adding a memory barrier between each instruction does not restore sequential consistency. We go on to extend the C/C++11 model to support non-atomic mixed-size memory accesses.
This is a necessary step towards semantics for real-world shared-memory concurrent code, beyond litmus tests.
Original language | English |
---|---|
Title of host publication | Proceedings of the 44th annual ACM-SIGPLAN Symposium on Principles of programming languages (POPL 2017) |
Editors | Matthew Fluet |
Place of Publication | New York |
Publisher | ACM |
Pages | 429-442 |
Number of pages | 14 |
ISBN (Print) | 9781450346603 |
DOIs | |
Publication status | Published - 1 Jan 2017 |
Event | POPL'17 44th ACM SIGPLAN Symposium on Principles of Programming Languages - Université Pierre et Marie Curie, Jussieu, Paris, France Duration: 15 Jan 2017 → 21 Jan 2017 Conference number: 44 http://conf.researchr.org/home/POPL-2017 |
Publication series
Name | ACM SIGPLAN Notices |
---|---|
Publisher | ACM |
Number | 1 |
Volume | 52 |
ISSN (Print) | 0362-1340 |
ISSN (Electronic) | 1558-1160 |
Conference
Conference | POPL'17 44th ACM SIGPLAN Symposium on Principles of Programming Languages |
---|---|
Abbreviated title | POPL |
Country/Territory | France |
City | Paris |
Period | 15/01/17 → 21/01/17 |
Internet address |
Keywords
- Relaxed Memory Models
- Mixed-size
- Semantics
- ISA