We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d764e15 commit 2a02b88Copy full SHA for 2a02b88
scalac-scoverage-runtime/shared/src/main/scala/scoverage/Invoker.scala
@@ -35,9 +35,10 @@ object Invoker {
35
// Each thread writes to a separate measurement file, to reduce contention
36
// and because file appends via FileWriter are not atomic on Windows.
37
var files = threadFiles.get()
38
- if (files == null)
+ if (files == null) {
39
files = ThreadSafeMap.empty[String, FileWriter]
40
- threadFiles.set(files)
+ threadFiles.set(files)
41
+ }
42
val writer = files.getOrElseUpdate(dataDir, new FileWriter(measurementFile(dataDir), true))
43
writer.append(id.toString + '\n').flush()
44
0 commit comments