~/talk

A practical approach to Java Memory Model

Talkat JDD 2018 · 2018-10-08..10-09· [java, concurrency]
links:none on file
slides:none on file

Explains concrete JMM failures reproduced with JCStress tests: store/load reorderings produce unexpected outcomes like "0 0" and "1 1" on x86, a forbidden "3" result appearing tens of thousands of times due to wrong volatile/order use, and visibility bugs on ARMv7 (Raspberry Pi) until fields are marked final to trigger the final freeze action. Shows fixes that work: disable JIT inlining with -XX:-Inline, set CPU affinity to remove cross-core store buffering effects, and correct volatile/ordering or make fields final.

AI-written summary · about

  1. 0:00Start
  2. 0:37About Me
  3. 1:07Out of Order Execution
  4. 2:08Compiler Optimization
  5. 3:15Loop Unrolling
  6. 3:55Example of Multi Thread Execution
  7. 5:47Compile Optimization
  8. 8:28Load and Store Buffers
  9. 11:25Jc Stress Framework
  10. 13:27Termination
  11. 15:44How the Framework Works
  12. 17:18Threads on the Same Cpu
  13. 21:02Thread Safe Immutable Objects
  14. 24:36Thread Size Mutable Objects
  15. 32:12Reflection
  16. 32:51Volatiles
~/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.