New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OutOfMemory / hang of scalac (typer bug?) #9151
Comments
Imported From: https://issues.scala-lang.org/browse/SI-9151?orig=1
|
no change in 2.12.4 or 2.13.0-M3 sample stack trace of what the compiler is doing:
|
@ochafik @SethTisue I have news on this issue. I have copied the code example into a For comparing performance, I was running on Ubuntu Linux, OpenJDK version "1.8.0_181", on a system with 4 Cores and 16 GiB of RAM. Update: I have also run this test (through |
The following repo case crashes scalac 2.11 and 2.10 with an OOM exception, or hangs pretty much forever if scalac is given loads of memory.
I haven't managed to reduce it further, but I'm under the impression it has to do with the widening of type constraints in the nested maps (where empty strings are returned).
(I fixed my original non-reduced code by avoiding a widening that was introduced by mistake)
A quick jconsole sampling shows some / lots of time is spent in
scala.reflect.internal.tpe.TypeConstraints.solve
.The text was updated successfully, but these errors were encountered: