How does the aliasing model interact with the concurrency model?

Aperta
#585 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
20/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
rust
Ambito
compilers

Direzione di ricerca

Start by reading issue #585 and the referenced aliasing and concurrency model discussions. The issue names no files, tests, or entry points; progress would require resolving how protector deactivation and concurrent accesses are ordered in a weak-memory model before finalizing the models.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

A-aliasing-model

Based on discussions I had with @JoJoDeveloping, it seems like there will have to be some sort of interaction between the aliasing model and the concurrency model. We'll have to figure out the details before finalizing decisions here.

One of the ways in which they interact is the "end of a function call" event that deactivates protectors: if that event happens in one thread, while another thread accesses that location, there's the question of -- did the access happen before or after the end of the call? Miri just uses the actual execution order for this, but in a weak memory world, we will likely have to use something like happens-before here or else we may lose some of the optimizations we were hoping for.

Lingua principale
Nessun dato sulla lingua
Stelle
760
Fork
68
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di rust-lang/unsafe-code-guidelines

Tutte le issue di rust-lang/unsafe-code-guidelines

Issue simili

Altre issue su Compilers

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.