Skip to content

Instantly share code, notes, and snippets.

View retronym's full-sized avatar

Jason Zaugg retronym

View GitHub Profile
pr-asm.log
qscalac -Ydebug -d /tmp -opt:l:inline,box-unbox '-opt-inline-from:scala/**' -Yopt-log-inline 'scala/collection/mutable/PriorityQueue.scala$collection$mutable$PriorityQueue$$heapify' **/PriorityQueue.scala
[running phase parser on PriorityQueue.scala]
[running phase namer on PriorityQueue.scala]
[running phase packageobjects on PriorityQueue.scala]
[running phase typer on PriorityQueue.scala]
[running phase patmat on PriorityQueue.scala]
[running phase superaccessors on PriorityQueue.scala]
[running phase extmethods on PriorityQueue.scala]
[running phase pickler on PriorityQueue.scala]
[running phase refchecks on PriorityQueue.scala]
package io.github.retronym
import sbt._
import Keys._
object SbtArgsFilePlugin extends AutoPlugin {
override def trigger = allRequirements
override def requires = sbt.plugins.JvmPlugin
import java.io.File.pathSeparator
val argsFileContents = taskKey[String]("Contents of file suitable for `scalac @args.txt`")
osboxes@osboxes:~/code/scala$ (export JAVA_HOME=/home/osboxes/code/tsan/build/linux-x86_64-server-release/images/jdk; export JAVA_OPTS=-XX:+ThreadSanitizer; scala -cp /tmp scala.reflect.runtime.ThreadSafetyTestMain)
==================
WARNING: ThreadSanitizer: unlock of an unlocked mutex (or by a wrong thread) (pid=29788)
#0 pthread_mutex_unlock <null> (java+0x43fb6e)
#1 ZIP_Get_From_Cache /home/osboxes/code/tsan/src/java.base/share/native/libzip/zip_util.c:822:5 (libzip.so+0x3309)
Location is heap block of size 160 at 0x7b28000051e0 allocated by thread T1:
#0 malloc <null> (java+0x4222f7)
#1 os::malloc(unsigned long, MemoryType, NativeCallStack const&) /home/osboxes/code/tsan/src/hotspot/share/runtime/os.cpp:698:18 (libjvm.so+0xadc8c1)

Slow

[info] ....[Hottest Region 1]..............................................................................
[info] c2, level 4, bench.generated.ListsBenchmark_scalaListBufferPlusEq_212_jmhTest::scalaListBufferPlusEq_212_thrpt_jmhStub, version 616 (348 bytes)
[info]                                                                         ; - scala.collection.mutable.ListBuffer::&lt;init&gt;@1 (line 48)
[info]                                                                         ; - bench.ListsBenchmark::scalaListBufferPlusEq_212@4 (line 42)
[info]                                                                         ; - bench.generated.ListsBenchmark_scalaListBufferPlusEq_212_jmhTest::scalaListBufferPlusEq_212_thrpt_jmhStub@17 (line 119)
[info]                                                                         ; implicit exception: dispatches to 0x00007fd547e826ea
[info]               0x00007fd547e8233b: test   r11d,r11d
[
{
"jmhVersion" : "1.21",
"benchmark" : "bench.ListBufferBenchmark.intListCreation",
"mode" : "thrpt",
"threads" : 1,
"forks" : 2,
"jvm" : "/Users/jz/.jabba/jdk/adopt@1.8.212-04/Contents/Home/jre/bin/java",
"jvmArgs" : [
"-server",
[
{
"jmhVersion" : "1.21",
"benchmark" : "bench.ListBufferBenchmark.intListCreation",
"mode" : "thrpt",
"threads" : 1,
"forks" : 2,
"jvm" : "/Users/jz/.jabba/jdk/adopt@1.8.212-04/Contents/Home/jre/bin/java",
"jvmArgs" : [
"-server",
[
{
"jmhVersion" : "1.21",
"benchmark" : "bench.ListBufferBenchmark.intListCreation",
"mode" : "thrpt",
"threads" : 1,
"forks" : 2,
"jvm" : "/Users/jz/.jabba/jdk/adopt@1.8.212-04/Contents/Home/jre/bin/java",
"jvmArgs" : [
"-server",
[
{
"jmhVersion" : "1.21",
"benchmark" : "bench.ListBufferBenchmark.intListCreation",
"mode" : "thrpt",
"threads" : 1,
"forks" : 2,
"jvm" : "/Users/jz/.jabba/jdk/adopt@1.8.212-04/Contents/Home/jre/bin/java",
"jvmArgs" : [
"-server",
[
{
"jmhVersion" : "1.21",
"benchmark" : "bench.ListBufferBenchmark.intListCreation",
"mode" : "thrpt",
"threads" : 1,
"forks" : 2,
"jvm" : "/Users/jz/.jabba/jdk/adopt@1.8.212-04/Contents/Home/jre/bin/java",
"jvmArgs" : [
"-server",