Skip to content

Commit

Permalink
add OptIn-s + minor fixes after rebase
Browse files Browse the repository at this point in the history
Signed-off-by: Evgeniy Moiseenko <[email protected]>
  • Loading branch information
eupp committed Aug 5, 2024
1 parent c36391d commit 926ddb2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ fun LincheckStatistics.toBenchmarkStatistics(name: String, strategy: LincheckStr
}
)

@OptIn(kotlinx.serialization.ExperimentalSerializationApi::class)
fun BenchmarksReport.saveJson(filename: String) {
val file = File("$filename.json")
file.outputStream().use { outputStream ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import org.junit.runners.Suite
@Suite.SuiteClasses(
SpinLockBenchmark::class,
ReentrantLockBenchmark::class,
IntrinsicLockBenchmark::class,
SynchronizedBenchmark::class,
ConcurrentLinkedQueueBenchmark::class,
ConcurrentDequeBenchmark::class,
ConcurrentHashMapBenchmark::class,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ class PlotCommand : CliktCommand() {
.optional()

override fun run() {

@OptIn(kotlinx.serialization.ExperimentalSerializationApi::class)
val report = report.inputStream().use { inputStream ->
Json.decodeFromStream<BenchmarksReport>(inputStream)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ import kotlinx.coroutines.channels.*
import org.jetbrains.kotlinx.lincheck.*
import org.jetbrains.kotlinx.lincheck.annotations.*
import org.jetbrains.kotlinx.lincheck.specifications.*
import org.jetbrains.kotlinx.lincheck.paramgen.IntGen
import org.jetbrains.kotlinx.lincheck_benchmark.AbstractLincheckBenchmark

@ExperimentalCoroutinesApi
@InternalCoroutinesApi
class RendezvousChannelBenchmark : AbstractLincheckBenchmark() {
private val ch = Channel<Int>()
Expand Down

0 comments on commit 926ddb2

Please sign in to comment.