~/talk

Concurrency — Java Memory Model — Not Just for Eagles

TalkinPolishat Confitura 2022 · on Saturday, 2022-06-25· [concurrency]
links:none on file
slides:none on file

The talk demonstrates Java memory-model failures using jcstress: showing a rare 1,0 read, a common 1,0/0,1 causality break, and a frequent 0,0 consensus anomaly, and notes that results change between Java 11 and 17. It shows that debugger/logging affect outcomes, that adding synchronized only to the writer does not fix it, and that correct fixes are publishing via volatile, proper monitor handoff, using thread start/join, or full synchronization so readers see the writer’s writes.

AI-written summary · about

  1. 0:00Java Memory Model intro
  2. 4:42Thread synchronization
  3. 8:40Sync problems in practice
  4. 12:41Shared memory properties
  5. 17:37JMM spec vs implementation
  6. 22:13JMM guarantees
  7. 26:45Sync via volatile
  8. 30:40Safe object construction
  9. 33:47Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.