Skip to content

Instantly share code, notes, and snippets.

View native.txt
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
View graal20.txt
qwwdfsad@qwwdfsad bin % ./native-image -cp /Users/qwwdfsad/Desktop/kotlin-native-macos-1.3.70/konan/lib/kotlin-native.jar org.jetbrains.kotlin.cli.utilities.MainKt
Build on Server(pid: 20577, port: 61514)
[org.jetbrains.kotlin.cli.utilities.mainkt:20577] classlist: 10,109.01 ms, 1.69 GB
[org.jetbrains.kotlin.cli.utilities.mainkt:20577] (cap): 1,580.42 ms, 1.69 GB
[org.jetbrains.kotlin.cli.utilities.mainkt:20577] setup: 2,168.81 ms, 1.69 GB
[org.jetbrains.kotlin.cli.utilities.mainkt:20577] analysis: 202.72 ms, 1.69 GB
3 fatal errors detected:
Fatal error:com.oracle.graal.pointsto.util.AnalysisError$ParsingError: Error encountered while parsing org.jetbrains.kotlin.native.interop.indexer.UtilsKt.parseTranslationUnit(kotlinx.cinterop.CPointer, java.io.File, java.util.List, int)
Parsing context:
parsing org.jetbrains.kotlin.native.interop.indexer.UtilsKt.parse(Utils.kt:117)
View DispatcherBenchmarks.kt
package kotlinx.coroutines.benchmarks
/*
* Copyright 2016-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
import kotlinx.coroutines.*
import kotlinx.coroutines.channels.*
import org.jetbrains.gradle.benchmarks.*
import kotlin.js.*
import kotlin.random.*
View hs_err.log
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGILL (0x4) at pc=0x000000010fea34e1, pid=10398, tid=0x0000000000002603
#
# JRE version: OpenJDK Runtime Environment (8.0) (build 1.8.0-internal-jetbrains_2018_06_20_01_52-b00)
# Java VM: OpenJDK 64-Bit Server VM (25.71-b00 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# V [libjvm.dylib+0x4a34e1] PerfDataManager::destroy()+0xab
#
View ConflatedChannelLinearizabilityTest.kt
package kotlinx.coroutines.experimental.channels
import com.devexperts.dxlab.lincheck.*
import com.devexperts.dxlab.lincheck.annotations.*
import com.devexperts.dxlab.lincheck.paramgen.*
import com.devexperts.dxlab.lincheck.stress.*
import kotlinx.coroutines.experimental.*
import org.junit.*
@Param(name = "value", gen = IntGen::class, conf = "1:3")
View AllocateBenchmark.java
public class AllocateBenchmark {
@Benchmark
public byte[] allocateArray() {
return new byte[1];
}
}
View IndexOfBenchmark.kt
package org.qwwdfsad.benchmarks
import org.openjdk.jmh.annotations.*
import java.util.concurrent.ThreadLocalRandom
import java.util.concurrent.TimeUnit
@Fork(value = 2) //jvmArgsAppend = arrayOf("-XX:TieredStopAtLevel=1"))
@Measurement(iterations = 10)
@Warmup(iterations = 10)
@State(Scope.Benchmark)
View Propagation.java
package org.openjdk.jmh.samples;
import org.openjdk.jmh.annotations.*;
import org.openjdk.jmh.runner.Runner;
import org.openjdk.jmh.profile.DTraceAsmProfiler;
import org.openjdk.jmh.runner.RunnerException;
import org.openjdk.jmh.runner.options.Options;
import org.openjdk.jmh.runner.options.OptionsBuilder;
import java.nio.ByteBuffer;
View jmh_dtrace.patch
Index: jmh/jmh-core/src/main/java/org/openjdk/jmh/util/Utils.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- jmh/jmh-core/src/main/java/org/openjdk/jmh/util/Utils.java (revision 1434:1ddf31f810a3100b9433c3fedf24615e85b1d1a7)
+++ jmh/jmh-core/src/main/java/org/openjdk/jmh/util/Utils.java (revision 1434+:1ddf31f810a3+)
@@ -446,6 +446,31 @@
return messages;
}
View jattach.patch
Index: src/jattach.c
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- src/jattach.c (revision 09e208d593344430de0bb7b4e72273cef93b29ff)
+++ src/jattach.c (revision )
@@ -150,6 +150,16 @@
return 1;
}