Introduce experimental kotlin.concurrent.Volatile annotation KT-55268, KT-55609
Use this annotation in tests to ensure it works the same at least on JVM
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
@Volatile var vol = 1
|
||||
@OptIn(ExperimentalStdlibApi::class)
|
||||
@kotlin.concurrent.Volatile var vol2 = 1
|
||||
@Transient val tra = 1
|
||||
|
||||
@Strictfp fun str() {}
|
||||
@Synchronized fun sync() {}
|
||||
|
||||
// 0 kotlin/jvm/Volatile
|
||||
// 0 kotlin/concurrent/Volatile
|
||||
// 0 kotlin/jvm/Transient
|
||||
// 0 kotlin/jvm/Strictfp
|
||||
// 0 kotlin/jvm/Synchronized
|
||||
|
||||
Reference in New Issue
Block a user