Deterministic Unit Tests for Multi-Threaded Java
summary
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
