Skip to content

Instantly share code, notes, and snippets.

Avatar

Jason Zaugg retronym

  • Lightbend
  • Brisbane, Australia
View GitHub Profile
View gist:26c2cf9fc13efa55b514166e0fe79668
jardiff $(scala-classpath $(scala-ref-version 23f0ead6df645b452d25e90bc1ab1516a8098eb5)) $(scala-classpath $(scala-pr-version 8525))
WARN: unable to invoke scalap on: /scala/concurrent/duration/package.class: Unexpected failure
WARN: unable to invoke scalap on: /scala/concurrent/duration/package.class: Unexpected failure
diff --git a/META-INF/MANIFEST.MF b/META-INF/MANIFEST.MF
index 11033f9..f086f56 100644
--- a/META-INF/MANIFEST.MF
+++ b/META-INF/MANIFEST.MF
@@ -1,310 +1,72 @@
Manifest-Version: 1.0
-Automatic-Module-Name: scala.tools.nsc
View repl-wrapper-bloat-grinds-to-a-halt-outdir.log
ls -lart '/tmp/$line648'
total 1448
-rw-r--r-- 1 jz wheel 399 Nov 28 16:53 $read$.class
-rw-r--r-- 1 jz wheel 4892 Nov 28 16:53 $read.class
-rw-r--r-- 1 jz wheel 506 Nov 28 16:53 $read$$iw$.class
-rw-r--r-- 1 jz wheel 551 Nov 28 16:53 $read$$iw$$iw$.class
-rw-r--r-- 1 jz wheel 600 Nov 28 16:53 $read$$iw$$iw$$iw$.class
-rw-r--r-- 1 jz wheel 653 Nov 28 16:53 $read$$iw$$iw$$iw$$iw$.class
-rw-r--r-- 1 jz wheel 710 Nov 28 16:53 $read$$iw$$iw$$iw$$iw$$iw$.class
-rw-r--r-- 1 jz wheel 771 Nov 28 16:53 $read$$iw$$iw$$iw$$iw$$iw$$iw$.class
View repl-wrapper-bloat-grinds-to-a-halt.log
for i in {1..1000}; do printf 'object bar { val foo = '$i'}; \nimport bar.foo\n foo\n val foo = ""\n foo\n'; done | scala
Welcome to Scala 2.13.1 (OpenJDK 64-Bit Server VM, Java 1.8.0_212).
Type in expressions for evaluation. Or try :help.
scala> object bar { val foo = 1};
defined object bar
scala> import bar.foo
import bar.foo
View repl-encoding.out
➜ scala-public-pickle git:(topic/public-pickle) printf 'object foo { def bar = 42}\nimport foo._\nbar\n val bar = 43\nbar\n' | scala -Xprint:parser -Yrepl-class-based
Welcome to Scala 2.13.1 (OpenJDK 64-Bit Server VM, Java 1.8.0_212).
Type in expressions for evaluation. Or try :help.
scala> object foo { def bar = 42}
[[syntax trees at end of parser]] // <console>
package $line3 {
sealed class $read extends _root_.scala.Serializable {
def <init>() = {
super.<init>();
View pr-8516-asm.log
after boxUnbox
// access flags 0x1000001
public scala$collection$mutable$PriorityQueue$$heapify(I)V
// parameter final from
L0
LINENUMBER 148 L0
L1
LINENUMBER 151 L1
ALOAD 0
View pr-8516.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]
View ArgsFile.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`")
View tsan.log
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)
View perfasm.md

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
You can’t perform that action at this time.