Lincheck: A Practical Framework for Testing Concurrent Data Structures on JVM
summary
Lincheck is a JVM test framework that generates concurrent scenarios from a declarative list of operations, then verifies linearizability by searching for a sequential explanation and reproducing failing interleavings. It instruments bytecode to record concurrency events and runs a model checking pass to produce a concrete interleaving trace (e.g., a bounded queue bug where non‑atomic size increment allows three offers into a capacity‑2 queue). Includes an IntelliJ plugin that steps the trace in the debugger.
AI-written summary · about
chapters (12)
- 0:00Introduction to testing
- 1:12Understanding linearizability
- 13:02Testing concurrent data structures
- 15:31Lincheck framework overview
- 18:02How Lincheck verifies correctness
- 20:37Debugging with execution traces
- 26:46Impact on algorithm development
- 28:16Code instrumentation in Lincheck
- 31:57Internal trace generation
- 33:42Debugger plugin demonstration
- 37:23Summary and benefits
- 38:30Q&A session
