English

LitmusKt: Concurrency Stress Testing for Kotlin

Programming Languages 2025-04-23 v2 Software Engineering

Abstract

We present LitmusKt - the first tool for litmus testing concurrent programs in Kotlin. The tool's novelty also lies in the fact that Kotlin is a multiplatform language, i.e., it compiles into multiple platforms, which means that the concurrency has to be tested on several of them. Our tool allows writing litmus tests in a single custom DSL, and these tests are then run in Kotlin/Native and Kotlin/JVM, two main platforms for concurrent programming in Kotlin. Using LitmusKt, we discovered novel bugs in the Kotlin compiler, which we then fixed and they are no longer present. Moreover, LitmusKt was integrated into the CI pipeline for Kotlin. LitmusKt is available on GitHub: https://github.com/JetBrains-Research/litmuskt. The demo is available on YouTube: https://youtu.be/oWCZp_Huwss.

Keywords

Cite

@article{arxiv.2501.07472,
  title  = {LitmusKt: Concurrency Stress Testing for Kotlin},
  author = {Denis Lochmelis and Evgenii Moiseenko and Yaroslav Golubev and Anton Podkopaev},
  journal= {arXiv preprint arXiv:2501.07472},
  year   = {2025}
}

Comments

Accepted to FSE'25 Demonstrations, 5 pages, 3 figures

R2 v1 2026-06-28T21:04:52.501Z