~/talk

How we test concurrent algorithms in Kotlin Coroutines

Talkat KotlinConf 2023 · 2023-04-12..04-14· Berlage Zaal· [testing]
links:none on file
slides:none on file

JetBrains uses Lincheck to declaratively test a dozen non‑trivial concurrent data structures (queues, semaphores, channels), generating and controlling interleavings by instrumenting bytecode, reproducing bugs and producing a concrete interleaving trace. Tests run as stress or model checking mode where the engine decides preemptions, finds a counterexample (for example a bounded‑queue with capacity 2 accepting three adds), and helps root cause analysis. The framework repeatedly uncovers real issues — it even found bugs in the standard Java library — and verifies fixes deterministically.

AI-written summary · about

  1. 0:00Start
  2. 5:36Typical Concurrent Tests
  3. 7:34An Ideal Concurrent Test
  4. 9:08Let's run the test!
  5. 9:37Correctness in Sequential World
  6. 10:55Correctness in Concurrent World
  7. 20:31Lincheck Overview
  8. 22:30Bytecode Transformation
  9. 25:14Counter Test
  10. 30:29Summary
~/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.