~/talk

Deterministic Unit Tests for Multi-Threaded Java

Talkat XtremeJ 2025 · on Tuesday, 2025-11-25· [testing, concurrency]
links:none on file
slides:none on file

Shows VMLens Java agent that records field accesses and synchronization and then systematic iteration over interleavings to exhaustively reproduce concurrency failures rather than lucking into them. Demonstrates ++ on a shared volatile that sometimes yields 1 instead of 2 when interleavings are explored, and a deadlock example; VMLens flags data races and deadlocks asynchronously and minimizes runs (examples needed only 4 runs, not 100,000) by treating atomic library calls and loops as black boxes for performance.

AI-written summary · about

  1. 0:00Introduction to deterministic tests
  2. 1:40Nondeterminism in multi-threaded tests
  3. 3:06Systematic thread interleaving
  4. 6:24Thread interleaving rules
  5. 9:37Data races detection
  6. 12:09Deadlock detection
  7. 13:13Performance optimization
  8. 14:38Testing thread-safe classes
  9. 18:54Summary and conclusion
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.