File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import scala.collection.concurrent.TrieMap
7
7
object Invoker {
8
8
9
9
private val threadFile = new ThreadLocal [FileWriter ]
10
- private val invoked = TrieMap .empty[Int , Any ]
10
+ private val ids = TrieMap .empty[Int , Any ]
11
11
12
12
/**
13
13
* We record that the given id has been invoked by appending its id to the coverage
@@ -30,7 +30,7 @@ object Invoker {
30
30
// times since for coverage we only care about 1 or more, (it just slows things down to
31
31
// do it more than once), anything we can do to help is good. This helps especially with code
32
32
// that is executed many times quickly, eg tight loops.
33
- if (! invoked .contains(id)) {
33
+ if (! ids .contains(id)) {
34
34
// Each thread writes to a separate measurement file, to reduce contention
35
35
// and because file appends via FileWriter are not atomic on Windows.
36
36
var writer = threadFile.get()
@@ -40,7 +40,7 @@ object Invoker {
40
40
threadFile.set(writer)
41
41
}
42
42
writer.append(id.toString + '\n ' ).flush()
43
- invoked .put(id, ())
43
+ ids .put(id, ())
44
44
}
45
45
}
46
46
}
You can’t perform that action at this time.
0 commit comments