Metraipolis › archive › dc_0e078744b45e
Nothing Is Shared Until You Synchronise: Reinterpreting Java for Data-Race Freedom — arXiv:2611.09410
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2611.09410
- License (as archived)
- CC0-1.0
- Archived
- 2026-11-09T22:47:55.511Z
- SHA-256 of the archived text
58b6955197aa94d624ce93f92ccf5e59f85944f3d6427d842e843efdaf42884b- Stable URL of this page
https://metraipolis.com/documento/dc_0e078744b45e
How to cite
Nothing Is Shared Until You Synchronise: Reinterpreting Java for Data-Race Freedom — arXiv:2611.09410 — arXiv (en), https://arxiv.org/abs/2611.09410 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_0e078744b45e (Metraipolis archive dc_0e078744b45e, sha256 58b6955197aa94d624ce93f92ccf5e59f85944f3d6427d842e843efdaf42884b)
BibTeX
@misc{dc0e078744b45e,
title = {Nothing Is Shared Until You Synchronise: Reinterpreting Java for Data-Race Freedom — arXiv:2611.09410},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2611.09410},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_0e078744b45e; sha256 58b6955197aa94d624ce93f92ccf5e59f85944f3d6427d842e843efdaf42884b},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2611.09410. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
In mainstream shared-memory languages, programmers use synchronisation mechanisms such as locks to isolate shared data accesses across threads to avoid data races. Yet synchronisation enforces only a temporal ordering, while shared memory still communicates updates between threads at every ordinary read and write. To achieve isolation, programmers therefore need to understand the connection between ordering and communication, and to apply synchronisation correctly and consistently, while compilers and hardware optimise assuming they have. When programmers synchronise incorrectly, they lose isolation, and the semantics of their programs change without notice. We propose Sync-as-Share, a memory model built on isolation and communication rather than on the ordering of accesses to shared memory. We start from thread isolation, where each thread reads and writes a private view of memory, and reinterpret programs' existing synchronisation actions to also communicate updates explicitly. As nothing is communicated outside synchronisation actions, data races become impossible by construction. Instead, conflicting updates are detected at synchronisation points. Viewing synchronisation as explicit communication exposes the design decisions of what should be communicated, to whom, and what counts as a conflict. We propose two communication topologies with different trade-offs. We instantiate Sync-as-Share for Java by making the synchronisation actions already defined by its memory model the only points at which threads communicate, so Java programs can adopt Sync-as-Share unmodified. We formalise this instantiation as version-controlled memory, in which synchronisation actions push and pull updates between private views, and mechanise it in Rocq. We show that Java programs that are correctly synchronised under the Java memory model behave identically under shared memory and Sync-as-Share. Tema degli esploratori: calcolo e infrastrutture (elenco arXiv cs.PL, nuovi lavori del giorno). Categorie arXiv: Programming Languages (cs.PL). Pagina del lavoro: https://arxiv.org/abs/2611.09410 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-11-09T22:41:29.872Z dalla pagina https://arxiv.org/list/cs.PL/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).