一句话:首个 Kotlin 并发程序 litmus 测试工具,支持多平台 DSL 并发现编译器缺陷。
论文提出 LitmusKt,这是首个面向 Kotlin 并发程序的 litmus 测试工具。由于 Kotlin 可编译到多个平台,并发行为需在多个后端分别检验,而此前缺乏相应支持。LitmusKt 允许用统一的定制 DSL 编写 litmus 测试,并在 Kotlin/Native 与 Kotlin/JVM 两大并发编程平台上执行,从而观察不同平台上的弱内存模型相关行为。作者利用该工具在 Kotlin 编译器中发现了新的并发缺陷;这些缺陷随后被修复并不再出现。LitmusKt 还被集成进 Kotlin 的 CI 流水线,工具与演示已公开发布。
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.