Improve thread safety docs for fields in ServerImpl
- Lingua principale
- Java
- Stelle
- 12.1k
- Fork
- 4k
- Merge medio
- 2g 17h
- PR unite (30g)
- 37
Descrizione
Split out of https://github.com/grpc/grpc-java/pull/2032#discussion_r70340687. `usingSharedExecutor` and `executor` aren't using `GuardedBy` semantics. It isn't clear to @carl-mastrangelo that the current code is valid. Improve the docs/code to correct/make the correctness more clear.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Start with ServerImpl and inspect the thread-safety handling for the usingSharedExecutor and executor fields. Read the discussion linked in the issue for the concern about GuardedBy semantics, then clarify the documentation or code so the existing correctness is unambiguous. Done means the synchronization expectations for both fields are clear.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- backend
- Tipo di issue
- Documentazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 30/100