Skip to content

Instantly share code, notes, and snippets.

/*
* Copyright 2010-2026 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.benchmarks.buildtools.incremental
import org.jetbrains.kotlin.build.report.BuildReporter
import org.jetbrains.kotlin.build.report.DoNothingICReporter
import org.jetbrains.kotlin.build.report.metrics.DoNothingBuildMetricsReporter
Subject: [PATCH] ATOMIC fail fast on start
---
Index: kotlinx-coroutines-core/common/src/intrinsics/Cancellable.kt
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/kotlinx-coroutines-core/common/src/intrinsics/Cancellable.kt b/kotlinx-coroutines-core/common/src/intrinsics/Cancellable.kt
--- a/kotlinx-coroutines-core/common/src/intrinsics/Cancellable.kt (revision d0b088bd721815ca7d399aa935886f4e3cc6f220)
+++ b/kotlinx-coroutines-core/common/src/intrinsics/Cancellable.kt (date 1784125504943)
package kotlinx.benchmarks.json
import kotlinx.serialization.*
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.JsonNames
import org.openjdk.jmh.annotations.Benchmark
import org.openjdk.jmh.annotations.BenchmarkMode
import org.openjdk.jmh.annotations.Fork
import org.openjdk.jmh.annotations.Measurement
import org.openjdk.jmh.annotations.Mode
Subject: [PATCH] JSR-45 support
---
Index: src/hotspot/share/oops/instanceKlass.hpp
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/hotspot/share/oops/instanceKlass.hpp b/src/hotspot/share/oops/instanceKlass.hpp
--- a/src/hotspot/share/oops/instanceKlass.hpp (revision cb059a6b1b1686b7adcb2e88536060f4f7d47118)
+++ b/src/hotspot/share/oops/instanceKlass.hpp (date 1772629314300)

Version XXX

🛠 LSP capabilities

  • Rename refactoring (textDocument/rename)
  • Kotlin code formatting (textDocument/formatting and textDocument/rangeFormatting)
    • Auto-applied on quickfixes, configurable via LSP protocol, IntelliJ implementation
  • Libraries/dependencies sources support (textDocument/definition)
  • Documentation on hover (textDocument/hover)
  • Signature help (textDocument/signatureHelp)
  • Faster highlighting on large files (textDocument/semanticTokens/range)
package kotlinx.benchmarks.json
import kotlinx.benchmarks.model.*
import org.openjdk.jmh.annotations.*
import org.openjdk.jmh.infra.Blackhole
import java.util.concurrent.*
import kotlin.random.Random
import org.openjdk.jmh.annotations.Benchmark
import org.openjdk.jmh.annotations.Fork
import org.openjdk.jmh.annotations.Measurement
@State(Scope.Thread)
open class ArrayAllocationBenchmark {
var y: Int = 42
@Benchmark
@CompilerControl(CompilerControl.Mode.DONT_INLINE)
fun arrayOf(): Any {
return arrayOf<Any>(java.lang.Integer.valueOf(y), java.lang.Integer.valueOf(y), java.lang.Integer.valueOf(y))
}
package qwwdfsad
import org.openjdk.jmh.annotations.*
import org.openjdk.jmh.infra.Blackhole
import java.util.concurrent.*
import kotlin.random.*
@Warmup(iterations = 3, time = 1)
@Measurement(iterations = 5, time = 1)
@Fork(value = 1)
@Warmup(iterations = 7, time = 1)
@Measurement(iterations = 5, time = 1)
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MILLISECONDS)
@State(Scope.Benchmark)
@Fork(2)
open class PushVsPullBenchmark {
private val source = flow {
repeat(100_000) { emit(it) }
e: java.lang.NullPointerException
at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.evaluateExplicitArgs(IrToBitcode.kt:2002)
at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.evaluateCall(IrToBitcode.kt:1838)
at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.evaluateExpression(IrToBitcode.kt:851)
at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.evaluateExplicitArgs(IrToBitcode.kt:1996)
at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.evaluateCall(IrToBitcode.kt:1838)
at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.evaluateExpression(IrToBitcode.kt:848)
at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.generateStatement(IrToBitcode.kt:884)
at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.visitFunction(IrToBitcode.kt:732)
at org.jetbrains.kotlin.ir.visitors.IrElementVisitorVoid$DefaultImpls.visitSimpleFunction(IrElementVisit