Native: fix ring benchmark compilation error
`@file:OptIn` can't be applied to a class. Change it to `@OptIn`.
This commit is contained in:
committed by
Space Team
parent
12f7a6de3e
commit
8466bec048
+1
-1
@@ -46,7 +46,7 @@ private fun ReferenceWrapper.stress() = (1..REPEAT_COUNT).sumOf {
|
||||
this.value
|
||||
}
|
||||
|
||||
@file:OptIn(kotlin.native.runtime.NativeRuntimeApi::class)
|
||||
@OptIn(kotlin.native.runtime.NativeRuntimeApi::class)
|
||||
open class WeakRefBenchmark {
|
||||
private val aliveRef = ReferenceWrapper.create()
|
||||
private val deadRef = ReferenceWrapper.create().apply {
|
||||
|
||||
Reference in New Issue
Block a user