Cargando…

Modular Relaxed Dependencies in Weak Memory Concurrency

We present a denotational semantics for weak memory concurrency that avoids thin-air reads, provides data-race free programs with sequentially consistent semantics (DRF-SC), and supports a compositional refinement relation for validating optimisations. Our semantics identifies false program dependen...

Descripción completa

Detalles Bibliográficos
Autores principales: Paviotti, Marco, Cooksey, Simon, Paradis, Anouk, Wright, Daniel, Owens, Scott, Batty, Mark
Formato: Online Artículo Texto
Lenguaje:English
Publicado: 2020
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7702250/
http://dx.doi.org/10.1007/978-3-030-44914-8_22
_version_ 1783616576560300032
author Paviotti, Marco
Cooksey, Simon
Paradis, Anouk
Wright, Daniel
Owens, Scott
Batty, Mark
author_facet Paviotti, Marco
Cooksey, Simon
Paradis, Anouk
Wright, Daniel
Owens, Scott
Batty, Mark
author_sort Paviotti, Marco
collection PubMed
description We present a denotational semantics for weak memory concurrency that avoids thin-air reads, provides data-race free programs with sequentially consistent semantics (DRF-SC), and supports a compositional refinement relation for validating optimisations. Our semantics identifies false program dependencies that might be removed by compiler optimisation, and leaves in place just the dependencies necessary to rule out thin-air reads. We show that our dependency calculation can be used to rule out thin-air reads in any axiomatic concurrency model, in particular C++. We present a tool that automatically evaluates litmus tests, show that we can augment C++ to fix the thin-air problem, and we prove that our augmentation is compatible with the previously used compilation mappings over key processor architectures. We argue that our dependency calculation offers a practical route to fixing the longstanding problem of thin-air reads in the C++ specification.
format Online
Article
Text
id pubmed-7702250
institution National Center for Biotechnology Information
language English
publishDate 2020
record_format MEDLINE/PubMed
spelling pubmed-77022502020-12-01 Modular Relaxed Dependencies in Weak Memory Concurrency Paviotti, Marco Cooksey, Simon Paradis, Anouk Wright, Daniel Owens, Scott Batty, Mark Programming Languages and Systems Article We present a denotational semantics for weak memory concurrency that avoids thin-air reads, provides data-race free programs with sequentially consistent semantics (DRF-SC), and supports a compositional refinement relation for validating optimisations. Our semantics identifies false program dependencies that might be removed by compiler optimisation, and leaves in place just the dependencies necessary to rule out thin-air reads. We show that our dependency calculation can be used to rule out thin-air reads in any axiomatic concurrency model, in particular C++. We present a tool that automatically evaluates litmus tests, show that we can augment C++ to fix the thin-air problem, and we prove that our augmentation is compatible with the previously used compilation mappings over key processor architectures. We argue that our dependency calculation offers a practical route to fixing the longstanding problem of thin-air reads in the C++ specification. 2020-04-18 /pmc/articles/PMC7702250/ http://dx.doi.org/10.1007/978-3-030-44914-8_22 Text en © The Author(s) 2020 Open Access This chapter is licensed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license and indicate if changes were made. The images or other third party material in this chapter are included in the chapter's Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the chapter's Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder.
spellingShingle Article
Paviotti, Marco
Cooksey, Simon
Paradis, Anouk
Wright, Daniel
Owens, Scott
Batty, Mark
Modular Relaxed Dependencies in Weak Memory Concurrency
title Modular Relaxed Dependencies in Weak Memory Concurrency
title_full Modular Relaxed Dependencies in Weak Memory Concurrency
title_fullStr Modular Relaxed Dependencies in Weak Memory Concurrency
title_full_unstemmed Modular Relaxed Dependencies in Weak Memory Concurrency
title_short Modular Relaxed Dependencies in Weak Memory Concurrency
title_sort modular relaxed dependencies in weak memory concurrency
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7702250/
http://dx.doi.org/10.1007/978-3-030-44914-8_22
work_keys_str_mv AT paviottimarco modularrelaxeddependenciesinweakmemoryconcurrency
AT cookseysimon modularrelaxeddependenciesinweakmemoryconcurrency
AT paradisanouk modularrelaxeddependenciesinweakmemoryconcurrency
AT wrightdaniel modularrelaxeddependenciesinweakmemoryconcurrency
AT owensscott modularrelaxeddependenciesinweakmemoryconcurrency
AT battymark modularrelaxeddependenciesinweakmemoryconcurrency