summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2015-02-19 22:25:07 +1000
committerJason Zaugg <jzaugg@gmail.com>2015-02-19 22:25:07 +1000
commit681800976ffe727d6b37fe055fbd1997568648ef (patch)
treee0bc3c13b3b395095e7f35adfb8a8b624ea28435 /test
parent42626365fd4972d6578a251c264b4622ed4ba1a4 (diff)
downloadscala-681800976ffe727d6b37fe055fbd1997568648ef.tar.gz
scala-681800976ffe727d6b37fe055fbd1997568648ef.tar.bz2
scala-681800976ffe727d6b37fe055fbd1997568648ef.zip
SI-9164 Fix thread safety of Scaladoc diagram generator
In a bug reminiscent of SI-7603 / ab8a223, when running multiple instances of Scaladoc in one JVM/classloader, we are exposed to race conditions in unprotected mutable state in a top-level object. This commit moves that state into the `Universe` object, which corresponds to a single Scaladoc instance. It also removes a little premature abstraction from the code. Note: the statistics code is still not thread safe, but this is no worse than the compiler itself, and not a real problem, as they are only enabled begind a `-Y` option.
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions