Closed
Description
Compiler version
3.1.1-RC1
Minimized code
armanbilge/schrodinger@ed9a8ba
Clone project in clean workspace and run sbt compile
.
Apologies that this isn't further minimized, not entirely sure how to approach this one. I'd appreciate any pointers.
FWIW it's not a big project, and the module that seems to have the problem is 4 files with < 1k LOC total.
Output
[warn] In the last 8 seconds, 6.706 (86.2%) were spent in GC. [Heap: 0.10GB free of 4.00GB, max 4.00GB] Consider increasing the JVM heap using `-Xmx` or try a different collector, e.g. `-XX:+UseG1GC`, for better performance.
| => monteCarlo / Compile / compileIncremental 312s
...
[warn] In the last 6 seconds, 5.215 (99.8%) were spent in GC. [Heap: 0.00GB free of 4.00GB, max 4.00GB] Consider increasing the JVM heap using `-Xmx` or try a different collector, e.g. `-XX:+UseG1GC`, for better performance.
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "classloader-cache-cleanup-0
Note this occurs frequently, but not always. Sometimes it compiles just fine.
Expectation
My code compiles the first time and everything is hunky-dory :)