Uploaded image for project: 'Scala Programming Language'
  1. Scala Programming Language
  2. SI-10045

scala.tools.nsc.interpreter.IMain.TranslatingClassLoader is not thread-safe

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Scala 2.10.6, Scala 2.11.8, Scala 2.12.0
    • Fix Version/s: Backlog
    • Component/s: Repl / Interpreter
    • Labels:

      Description

      scala.tools.nsc.interpreter.IMain.TranslatingClassLoader calls a non-thread-safe method `translateSimpleResource` (this method calls `SymbolTable.enteringPhase`), which makes it become non-thread-safe.

      However, a ClassLoader must be thread-safe since the class can be loaded in arbitrary thread.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              zsxwing Shixiong Zhu
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: