blob: 240f40d1b4cad0c0483d782c1fab7c85b5804649 [file]
// TARGET_BACKEND: JVM
// TARGET_BACKEND: JVM_IR
// TODO: Consider rewriting this test without using threads, since the issue is not about threads at all.
object RefreshQueue {
val any = Any()
val workerThread: Thread = Thread(object : Runnable {
override fun run() {
val a = any
val b = RefreshQueue.any
if (a != b) throw AssertionError()
}
})
}
fun box() : String {
RefreshQueue.workerThread.run()
return "OK"
}