Skip to content

Compiler gets stuck in GC while SubstSym #11249

@lrytz

Description

@lrytz

Discovered while looking at scala/scala#7355

Check out this branch: https://github.com/lrytz/scala/tree/pr7355-stuck (this was the tip of scala/scala#7355 at some point), run sbt dist/mkQuick

Get Test.scala from here https://gist.github.com/lrytz/83067340d568c999091fc9ae67bfb72b

Run the quick compiler with export JAVA_OPTS="-Xmx1024m"

Compiling the same test file with current 2.13.x works, so the changes to the library made in the PR seem to be necessary to expose the compiler bug.

Profiler screenshot:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixed in Scala 3This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/)performance

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions