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
Intermittent ConcurrentModificationException constructing scala.tools.nsc.Settings #7775
Comments
Imported From: https://issues.scala-lang.org/browse/SI-7775?orig=1 |
@retronym said: |
James Koch (jameskoch2) said: |
@retronym said: |
James Koch (jameskoch2) said: def SI7269() {
import scala.concurrent.{duration, future, Await, ExecutionContext}
import scala.tools.nsc.Settings
import ExecutionContext.Implicits.global
val tries = 5000 // YMMV
val compiler = future {
for(_ <- 1 to tries) new Settings(_ => {})
}
for(i <- 1 to tries * 10) System.setProperty(s"foo$i", i.toString)
Await.result(compiler, duration.Duration.Inf)
} In my particular case, it's really convenient to be able to spin up a compiler inside a process that's concurrently performing non-compiler work. Given all of the possible usages of setProperty, this defect limits that capability. Just looking around the JDK itself, something as simple as initializing a new java.util.Date might set a property ("user.timezone"). |
@som-snytt said: |
@retronym said: |
@lrytz said: |
Seeing this very intermittently when constructing scala.tools.nsc.Settings
Ever-so-slightly similar to #7269
The text was updated successfully, but these errors were encountered: